Skip to content

Commit

Permalink
Merge pull request #12277 from djberg96/asset_caching
Browse files Browse the repository at this point in the history
Use memory store for assets in test environment
(cherry picked from commit ff9564d)
  • Loading branch information
jrafanie authored and chessbyte committed Nov 1, 2016
1 parent 047b557 commit f1d8751
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
config.public_file_server.enabled = true
config.static_cache_control = "public, max-age=3600"

# Avoid potential warnings and race conditions
config.assets.configure do |env|
env.cache = ActiveSupport::Cache.lookup_store(:memory_store)
end

# Log error messages when you accidentally call methods on nil
config.whiny_nils = true

Expand Down

0 comments on commit f1d8751

Please sign in to comment.