remove no digest refs
the digestless special dev behavior is no longer needed
This commit is contained in:
parent
0a67d859d5
commit
2bc3aa7ed4
|
@ -30,7 +30,6 @@ class Autospec::ReloadCss
|
||||||
[:desktop, :mobile].each do |style|
|
[:desktop, :mobile].each do |style|
|
||||||
s = DiscourseStylesheets.new(style)
|
s = DiscourseStylesheets.new(style)
|
||||||
s.compile
|
s.compile
|
||||||
s.ensure_digestless_file
|
|
||||||
paths << "public" + s.stylesheet_relpath_no_digest
|
paths << "public" + s.stylesheet_relpath_no_digest
|
||||||
end
|
end
|
||||||
ActiveRecord::Base.clear_active_connections!
|
ActiveRecord::Base.clear_active_connections!
|
||||||
|
|
|
@ -7,17 +7,10 @@ describe StylesheetsController do
|
||||||
StylesheetCache.destroy_all
|
StylesheetCache.destroy_all
|
||||||
builder = Stylesheet::Manager.new('desktop_rtl', nil)
|
builder = Stylesheet::Manager.new('desktop_rtl', nil)
|
||||||
builder.compile
|
builder.compile
|
||||||
builder.ensure_digestless_file
|
|
||||||
|
|
||||||
digest = StylesheetCache.first.digest
|
digest = StylesheetCache.first.digest
|
||||||
StylesheetCache.destroy_all
|
StylesheetCache.destroy_all
|
||||||
|
|
||||||
# digestless
|
|
||||||
get :show, name: 'desktop_rtl'
|
|
||||||
expect(response).to be_success
|
|
||||||
|
|
||||||
StylesheetCache.destroy_all
|
|
||||||
|
|
||||||
get :show, name: "desktop_rtl_#{digest}"
|
get :show, name: "desktop_rtl_#{digest}"
|
||||||
expect(response).to be_success
|
expect(response).to be_success
|
||||||
|
|
||||||
|
@ -28,9 +21,6 @@ describe StylesheetsController do
|
||||||
# tmp folder destruction and cached
|
# tmp folder destruction and cached
|
||||||
`rm #{Stylesheet::Manager.cache_fullpath}/*`
|
`rm #{Stylesheet::Manager.cache_fullpath}/*`
|
||||||
|
|
||||||
get :show, name: 'desktop_rtl'
|
|
||||||
expect(response).to be_success
|
|
||||||
|
|
||||||
get :show, name: "desktop_rtl_#{digest}"
|
get :show, name: "desktop_rtl_#{digest}"
|
||||||
expect(response).to be_success
|
expect(response).to be_success
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue