提交 c102db93 编写于 作者: C Carlhuda

Updates notifications tests in railties to reflect changes to the notifications API

上级 350d3daa
......@@ -10,13 +10,15 @@ class MyQueue
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册