Skip to content

Commit

Permalink
Merge pull request ManageIQ#12277 from djberg96/asset_caching
Browse files Browse the repository at this point in the history
Use memory store for assets in test environment
  • Loading branch information
jrafanie authored Oct 28, 2016
2 parents 650c968 + 9c3d2b3 commit ff9564d
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 ff9564d

Please sign in to comment.