summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2017-03-20 11:00:28 +0100
committerAzul <azul@riseup.net>2017-03-20 11:04:44 +0100
commit32b07d8c98719f3c52a3c5315da1f61c6e35cbd6 (patch)
treece9e94b23dc6b838a9e68a96b1d7cc811924f952 /config
parentd7990f1b2af378ad071db6d94c5f95a50d6b7dcd (diff)
test: 404 response for missing key
enable testing error responses on the full rack stack.
Diffstat (limited to 'config')
-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