Methods
S
T
Instance Public methods
setup()
# File activesupport/test/notifications_test.rb, line 6
def setup
  @old_notifier = ActiveSupport::Notifications.notifier
  @notifier = ActiveSupport::Notifications::Fanout.new
  ActiveSupport::Notifications.notifier = @notifier
  @events = []
  @named_events = []
  @subscription = @notifier.subscribe { |*args| @events << event(*args) }
  @named_subscription = @notifier.subscribe("named.subscription") { |*args| @named_events << event(*args) }
end
teardown()
# File activesupport/test/notifications_test.rb, line 16
def teardown
  ActiveSupport::Notifications.notifier = @old_notifier
end