aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/notifications_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/notifications_test.rb')
-rw-r--r--activesupport/test/notifications_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/notifications_test.rb b/activesupport/test/notifications_test.rb
index 3ba77ae135..ef6e6d8d22 100644
--- a/activesupport/test/notifications_test.rb
+++ b/activesupport/test/notifications_test.rb
@@ -86,6 +86,10 @@ module Notifications
assert_equal 2, @notifier.instrument(:awesome) { 1 + 1 }
end
+ def test_instrumenter_exposes_its_id
+ assert_equal 20, ActiveSupport::Notifications::Instrumenter.new(@notifier).id.size
+ end
+
def test_nested_events_can_be_instrumented
@notifier.instrument(:awesome, :payload => "notifications") do
@notifier.instrument(:wot, :payload => "child") do