class TestSubscriber

Monkey patch subscriber to test that only one subscriber per method is added.

Public Class Methods

clear() click to toggle source
# File activesupport/test/subscriber_test.rb, line 11
def self.clear
  @@events = []
end

Public Instance Methods

open_party(event) click to toggle source
# File activesupport/test/subscriber_test.rb, line 15
def open_party(event)
  events << event
end

Private Instance Methods

private_party(event) click to toggle source
# File activesupport/test/subscriber_test.rb, line 21
def private_party(event)
  events << event
end