jmoses_event_bus 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/event_bus/testing.rb +1 -1
- metadata +1 -1
data/lib/event_bus/testing.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class EventBus
|
2
|
-
def self.with_temporary_subscriber(pattern, listener, method_name
|
2
|
+
def self.with_temporary_subscriber(pattern, listener = nil, method_name = nil)
|
3
3
|
subscribe(pattern, listener, method_name)
|
4
4
|
temporary_subscriber = registrations.last_subscriber
|
5
5
|
|