aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Nelson <michael@nelsonware.com>2018-08-02 16:56:41 -0700
committerMichael Nelson <michael@nelsonware.com>2018-08-02 16:58:57 -0700
commit7beb176283d3888d4e8637e56cd14c2c90db8165 (patch)
tree1f23eb202fd4d4479c9898dab661193a7cb088b9
parent2088b10b1fcce969c7d03fe4b2297442f1d02174 (diff)
downloadrails-7beb176283d3888d4e8637e56cd14c2c90db8165.tar.gz
rails-7beb176283d3888d4e8637e56cd14c2c90db8165.tar.bz2
rails-7beb176283d3888d4e8637e56cd14c2c90db8165.zip
Set cache store as null_store for test environment
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt1
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt
index 82f2a8aebe..223aa56187 100644
--- a/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt
+++ b/railties/lib/rails/generators/rails/app/templates/config/environments/test.rb.tt
@@ -21,6 +21,7 @@ Rails.application.configure do
# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
+ config.cache_store = :null_store
# Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = false