Permalink
Browse files

Updates notifications tests in railties to reflect changes to the not…

…ifications API
  • Loading branch information...
Carlhuda Carlhuda
Carlhuda authored and Carlhuda committed Nov 24, 2009
1 parent 350d3da commit c102db9367690af992786d2a62bbf8caeec88742
Showing with 3 additions and 1 deletion.
  1. +3 −1 railties/test/application/notifications_test.rb
@@ -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

0 comments on commit c102db9

Please sign in to comment.