mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
FIX: extracted theme JavaScripts for multisite (#6502)
* FIX: extracted theme javascripts for multisite * onceoff to rebake all theme fields
This commit is contained in:
parent
22408f93c9
commit
0f1afad6da
4 changed files with 34 additions and 1 deletions
|
@ -29,4 +29,11 @@ RSpec.describe JavascriptCache, type: :model do
|
|||
expect(javascript_cache.errors.details[:content]).to include(error: :empty)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'url' do
|
||||
it 'works with multisite' do
|
||||
javascript_cache = JavascriptCache.create!(content: 'console.log("hello");', theme_field: theme_field)
|
||||
expect(javascript_cache.url).to include("?__ws=test.localhost")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue