Methods
S
T
Instance Public methods
setup()
# File activesupport/test/subscriber_test.rb, line 33
def setup
  TestSubscriber.clear
end
test_attaches_only_one_subscriber()
# File activesupport/test/subscriber_test.rb, line 43
def test_attaches_only_one_subscriber
  ActiveSupport::Notifications.instrument("open_party.doodle")

  assert_equal 1, TestSubscriber.events.size
end
test_attaches_subscribers()
# File activesupport/test/subscriber_test.rb, line 37
def test_attaches_subscribers
  ActiveSupport::Notifications.instrument("open_party.doodle")

  assert_equal "open_party.doodle", TestSubscriber.events.first.name
end
test_does_not_attach_private_methods()
# File activesupport/test/subscriber_test.rb, line 49
def test_does_not_attach_private_methods
  ActiveSupport::Notifications.instrument("private_party.doodle")

  assert_equal [], TestSubscriber.events
end