aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorJorge Bejar <jorge@wyeworks.com>2015-07-20 16:38:09 -0300
committerJorge Bejar <jorge@wyeworks.com>2015-12-09 10:53:45 -0300
commit6fa2023c816e8dc8d2735a5fe87098ef5d8253f9 (patch)
treeefa9a44d6ef690d2be21629cb4663524c3334494 /actionpack/test
parent668d94fff644e87d49004e4f48143f5561e8c9a0 (diff)
downloadrails-6fa2023c816e8dc8d2735a5fe87098ef5d8253f9.tar.gz
rails-6fa2023c816e8dc8d2735a5fe87098ef5d8253f9.tar.bz2
rails-6fa2023c816e8dc8d2735a5fe87098ef5d8253f9.zip
DebugException initialize with a response_format value
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/debug_exceptions_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/debug_exceptions_test.rb b/actionpack/test/dispatch/debug_exceptions_test.rb
index d9c6233511..159bf10545 100644
--- a/actionpack/test/dispatch/debug_exceptions_test.rb
+++ b/actionpack/test/dispatch/debug_exceptions_test.rb
@@ -213,7 +213,7 @@ class DebugExceptionsTest < ActionDispatch::IntegrationTest
end
test "rescue with json error for API request" do
- @app = ActionDispatch::DebugExceptions.new(Boomer.new(true), RoutesApp, true)
+ @app = ActionDispatch::DebugExceptions.new(Boomer.new(true), RoutesApp, :api)
get "/", headers: { 'action_dispatch.show_exceptions' => true }
assert_response 500
@@ -254,7 +254,7 @@ class DebugExceptionsTest < ActionDispatch::IntegrationTest
end
test "rescue with json on API request returns only allowed formats or json as a fallback" do
- @app = ActionDispatch::DebugExceptions.new(Boomer.new(true), RoutesApp, true)
+ @app = ActionDispatch::DebugExceptions.new(Boomer.new(true), RoutesApp, :api)
get "/index.json", headers: { 'action_dispatch.show_exceptions' => true }
assert_response 500