From 32b07d8c98719f3c52a3c5315da1f61c6e35cbd6 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 20 Mar 2017 11:00:28 +0100 Subject: test: 404 response for missing key enable testing error responses on the full rack stack. --- config/environments/test.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'config') 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 -- cgit v1.2.3