diff options
author | Carlhuda <carlhuda@Carlhudas-iMac.local> | 2009-11-23 17:04:32 -0800 |
---|---|---|
committer | Carlhuda <carlhuda@Carlhudas-iMac.local> | 2009-11-23 17:28:50 -0800 |
commit | c102db9367690af992786d2a62bbf8caeec88742 (patch) | |
tree | 9044b696c10937459935b305dd6f67c7ab2eb398 | |
parent | 350d3daa8825ac2049a306506b14193f0896e8ff (diff) | |
download | rails-c102db9367690af992786d2a62bbf8caeec88742.tar.gz rails-c102db9367690af992786d2a62bbf8caeec88742.tar.bz2 rails-c102db9367690af992786d2a62bbf8caeec88742.zip |
Updates notifications tests in railties to reflect changes to the notifications API
-rw-r--r-- | railties/test/application/notifications_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/test/application/notifications_test.rb b/railties/test/application/notifications_test.rb index 62ed4f4ad4..28dfdfcd83 100644 --- a/railties/test/application/notifications_test.rb +++ b/railties/test/application/notifications_test.rb @@ -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 |