Methods
Instance Public methods
setup()
Link
Source: show
# File activesupport/test/notifications_test.rb 8 def setup 9 @old_notifier = ActiveSupport::Notifications.notifier 10 @notifier = ActiveSupport::Notifications::Fanout.new 11 ActiveSupport::Notifications.notifier = @notifier 12 @events = [] 13 @named_events = [] 14 @subscription = @notifier.subscribe { |*args| @events << event(*args) } 15 @named_subscription = @notifier.subscribe("named.subscription") { |*args| @named_events << event(*args) } 16 end
teardown()
Link
Source: show
# File activesupport/test/notifications_test.rb 18 def teardown 19 ActiveSupport::Notifications.notifier = @old_notifier 20 end
Instance Private methods