mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Updates notifications tests in railties to reflect changes to the notifications API
This commit is contained in:
@@ -10,13 +10,15 @@ module ApplicationTests
|
||||
def initialize
|
||||
@events = []
|
||||
@subscribers = []
|
||||
@listeners = []
|
||||
end
|
||||
|
||||
def publish(name, *args)
|
||||
@events << name
|
||||
end
|
||||
|
||||
def subscribe(pattern=nil, &block)
|
||||
def subscribe(listener, pattern=nil, &block)
|
||||
@listeners << listener
|
||||
@subscribers << pattern
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user