mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +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:
@ -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
|
||||
|
Reference in New Issue
Block a user