Skip to content

Commit

Permalink
Configure Cache Sweeper to Also Run in "test" Environment
Browse files Browse the repository at this point in the history
  • Loading branch information
rience committed Aug 31, 2023
1 parent 85e8ff6 commit 03e9b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/propshaft/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Railtie < ::Rails::Railtie
[ "text/css", Propshaft::Compiler::SourceMappingUrls ],
[ "text/javascript", Propshaft::Compiler::SourceMappingUrls ]
]
config.assets.sweep_cache = Rails.env.development?
config.assets.sweep_cache = Rails.env.development? || Rails.env.test?
config.assets.server = Rails.env.development? || Rails.env.test?
config.assets.relative_url_root = nil

Expand Down

0 comments on commit 03e9b87

Please sign in to comment.