aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/exception_wrapper_test.rb
diff options
context:
space:
mode:
authorYuki Nishijima <yk.nishijima@gmail.com>2018-04-01 21:47:07 -0400
committerYuki Nishijima <yk.nishijima@gmail.com>2018-07-15 20:54:19 -0400
commit1f525b4f7dd8307f69c0a6d5cb252d41cc405f9d (patch)
tree59b5346c449a5db149bf5acea7da70f0a07c848e /actionpack/test/dispatch/exception_wrapper_test.rb
parent94f2558f6a5bd315334d1b57a9aeeef48abfea20 (diff)
downloadrails-1f525b4f7dd8307f69c0a6d5cb252d41cc405f9d.tar.gz
rails-1f525b4f7dd8307f69c0a6d5cb252d41cc405f9d.tar.bz2
rails-1f525b4f7dd8307f69c0a6d5cb252d41cc405f9d.zip
Show nested exceptions on the debug view
Diffstat (limited to 'actionpack/test/dispatch/exception_wrapper_test.rb')
-rw-r--r--actionpack/test/dispatch/exception_wrapper_test.rb24
1 files changed, 20 insertions, 4 deletions
diff --git a/actionpack/test/dispatch/exception_wrapper_test.rb b/actionpack/test/dispatch/exception_wrapper_test.rb
index f6e70382a8..600280d6b3 100644
--- a/actionpack/test/dispatch/exception_wrapper_test.rb
+++ b/actionpack/test/dispatch/exception_wrapper_test.rb
@@ -108,11 +108,27 @@ module ActionDispatch
wrapper = ExceptionWrapper.new(@cleaner, exception)
assert_equal({
- "Application Trace" => [ id: 0, trace: "lib/file.rb:42:in `index'" ],
- "Framework Trace" => [ id: 1, trace: "/gems/rack.rb:43:in `index'" ],
+ "Application Trace" => [
+ exception_object_id: exception.object_id,
+ id: 0,
+ trace: "lib/file.rb:42:in `index'"
+ ],
+ "Framework Trace" => [
+ exception_object_id: exception.object_id,
+ id: 1,
+ trace: "/gems/rack.rb:43:in `index'"
+ ],
"Full Trace" => [
- { id: 0, trace: "lib/file.rb:42:in `index'" },
- { id: 1, trace: "/gems/rack.rb:43:in `index'" }
+ {
+ exception_object_id: exception.object_id,
+ id: 0,
+ trace: "lib/file.rb:42:in `index'"
+ },
+ {
+ exception_object_id: exception.object_id,
+ id: 1,
+ trace: "/gems/rack.rb:43:in `index'"
+ }
]
}, wrapper.traces)
end