summaryrefslogtreecommitdiff
path: root/config/environments
diff options
context:
space:
mode:
authorazul <azul@riseup.net>2017-03-20 10:11:44 +0000
committerazul <azul@riseup.net>2017-03-20 10:11:44 +0000
commit15de288c3ca9bacc3d45675878ee7b8a2d9fc935 (patch)
treece9e94b23dc6b838a9e68a96b1d7cc811924f952 /config/environments
parentd7990f1b2af378ad071db6d94c5f95a50d6b7dcd (diff)
parent32b07d8c98719f3c52a3c5315da1f61c6e35cbd6 (diff)
Merge branch 'test/404-error-test' into 'master'
test: 404 response for missing key See merge request !18
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/test.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb
index 0ba4fbd..ecbbedc 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -18,12 +18,11 @@ Rails.application.configure do
config.serve_static_files = true
config.static_cache_control = 'public, max-age=3600'
- # Show full error reports and disable caching.
- config.consider_all_requests_local = true
+ # Disable caching.
config.action_controller.perform_caching = false
- # Raise exceptions instead of rendering exception templates.
- config.action_dispatch.show_exceptions = false
+ # Render the exception templates so we can test them as well.
+ config.action_dispatch.show_exceptions = true
# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false