From 3e48bfd49730331d8f09d4d96bb9a58959017a9c Mon Sep 17 00:00:00 2001 From: "Ryan T. Hosford" Date: Wed, 30 Dec 2015 13:44:18 -0600 Subject: Adds exception object to instrumenter's payload - Adds new key/value pair to payload when an exception is raised e.g. `:exception_object=> #` - Updates relevant test - Adds CHANGELOG entry --- activesupport/test/notifications_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/test') diff --git a/activesupport/test/notifications_test.rb b/activesupport/test/notifications_test.rb index d9cc392ac9..1cb17e6197 100644 --- a/activesupport/test/notifications_test.rb +++ b/activesupport/test/notifications_test.rb @@ -232,7 +232,7 @@ module Notifications assert_equal 1, @events.size assert_equal Hash[:payload => "notifications", - :exception => ["RuntimeError", "FAIL"]], @events.last.payload + :exception => ["RuntimeError", "FAIL"], :exception_object => e], @events.last.payload end def test_event_is_pushed_even_without_block -- cgit v1.2.3