aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/notifications_test.rb
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-03-17 23:44:03 +0100
committerJosé Valim <jose.valim@gmail.com>2010-03-17 23:44:03 +0100
commita6dc227167a8a720bd18495268305b15aa08d8f4 (patch)
treeb641b258a5670526947145c27d091f991e482b2e /activesupport/test/notifications_test.rb
parent21dcbb17de86b92df1a67e233fdc457be4fdf2d7 (diff)
downloadrails-a6dc227167a8a720bd18495268305b15aa08d8f4.tar.gz
rails-a6dc227167a8a720bd18495268305b15aa08d8f4.tar.bz2
rails-a6dc227167a8a720bd18495268305b15aa08d8f4.zip
Mark bang instrumentations as something that you shuold not be listening to.
Diffstat (limited to 'activesupport/test/notifications_test.rb')
-rw-r--r--activesupport/test/notifications_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/test/notifications_test.rb b/activesupport/test/notifications_test.rb
index 67c3527e23..92fbe5b92f 100644
--- a/activesupport/test/notifications_test.rb
+++ b/activesupport/test/notifications_test.rb
@@ -65,7 +65,7 @@ module Notifications
assert_equal [[:foo]] * 4, @events
end
- def test_log_subscriber_with_pattern
+ def test_log_subscriber_with_string
events = []
@notifier.subscribe('1') { |*args| events << args }
@@ -74,10 +74,10 @@ module Notifications
@notifier.publish 'a.1'
@notifier.wait
- assert_equal [['1'], ['1.a']], events
+ assert_equal [['1']], events
end
- def test_log_subscriber_with_pattern_as_regexp
+ def test_log_subscriber_with_pattern
events = []
@notifier.subscribe(/\d/) { |*args| events << args }