FIX: extracted theme JavaScripts for multisite (#6502)

* FIX: extracted theme javascripts for multisite

* onceoff to rebake all theme fields
This commit is contained in:
Kyle Zhao
2018-10-18 02:05:34 -04:00
committed by Sam
parent 22408f93c9
commit 0f1afad6da
4 changed files with 34 additions and 1 deletions

View File

@ -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