From 2bc3aa7ed4e1b958ee6fe56df2220acce40795ae Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 18 Apr 2017 17:05:33 -0400 Subject: [PATCH] remove no digest refs the digestless special dev behavior is no longer needed --- lib/autospec/reload_css.rb | 1 - spec/controllers/stylesheets_controller_spec.rb | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/lib/autospec/reload_css.rb b/lib/autospec/reload_css.rb index e6bd00a6fa1..379058666cd 100644 --- a/lib/autospec/reload_css.rb +++ b/lib/autospec/reload_css.rb @@ -30,7 +30,6 @@ class Autospec::ReloadCss [:desktop, :mobile].each do |style| s = DiscourseStylesheets.new(style) s.compile - s.ensure_digestless_file paths << "public" + s.stylesheet_relpath_no_digest end ActiveRecord::Base.clear_active_connections! diff --git a/spec/controllers/stylesheets_controller_spec.rb b/spec/controllers/stylesheets_controller_spec.rb index 7351091f79c..8f18d2b2d5a 100644 --- a/spec/controllers/stylesheets_controller_spec.rb +++ b/spec/controllers/stylesheets_controller_spec.rb @@ -7,17 +7,10 @@ describe StylesheetsController do StylesheetCache.destroy_all builder = Stylesheet::Manager.new('desktop_rtl', nil) builder.compile - builder.ensure_digestless_file digest = StylesheetCache.first.digest StylesheetCache.destroy_all - # digestless - get :show, name: 'desktop_rtl' - expect(response).to be_success - - StylesheetCache.destroy_all - get :show, name: "desktop_rtl_#{digest}" expect(response).to be_success @@ -28,9 +21,6 @@ describe StylesheetsController do # tmp folder destruction and cached `rm #{Stylesheet::Manager.cache_fullpath}/*` - get :show, name: 'desktop_rtl' - expect(response).to be_success - get :show, name: "desktop_rtl_#{digest}" expect(response).to be_success