aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/notifications_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-05-02 22:40:20 +0200
committerJosé Valim <jose.valim@gmail.com>2010-05-02 22:45:54 +0200
commita76c7e68d5e39f5962d9cb85c98e6a8e96f8b3af (patch)
tree3d08dcfb6f2f00b8bfb3e8cbce00504f6e6f26b0 /activesupport/test/notifications_test.rb
parent731d4392e478ff5526b595074d9caa999da8bd0c (diff)
downloadrails-a76c7e68d5e39f5962d9cb85c98e6a8e96f8b3af.tar.gz
rails-a76c7e68d5e39f5962d9cb85c98e6a8e96f8b3af.tar.bz2
rails-a76c7e68d5e39f5962d9cb85c98e6a8e96f8b3af.zip
Event should be aware if yielded block failed or not.
Diffstat (limited to 'activesupport/test/notifications_test.rb')
-rw-r--r--activesupport/test/notifications_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/test/notifications_test.rb b/activesupport/test/notifications_test.rb
index 251380a0d5..e11de5f67a 100644
--- a/activesupport/test/notifications_test.rb
+++ b/activesupport/test/notifications_test.rb
@@ -179,6 +179,8 @@ module Notifications
drain
assert_equal 1, @events.size
+ assert_equal Hash[:payload => "notifications",
+ :exception => ["RuntimeError", "FAIL"]], @events.last.payload
end
def test_event_is_pushed_even_without_block