@@ -22,8 +22,8 @@ def call(event)
2222 another_handler = TestHandler . new
2323 global_handler = TestHandler . new
2424
25- subscriptions . add_subscription ( handler , [ Test1DomainEvent , Test3DomainEvent ] )
26- subscriptions . add_subscription ( another_handler , [ Test2DomainEvent ] )
25+ subscriptions . add_subscription ( handler , [ ' Test1DomainEvent' , ' Test3DomainEvent' ] )
26+ subscriptions . add_subscription ( another_handler , [ ' Test2DomainEvent' ] )
2727 subscriptions . add_global_subscription ( global_handler )
2828
2929 expect ( subscriptions . all_for ( 'Test1DomainEvent' ) ) . to eq ( [ handler , global_handler ] )
@@ -36,11 +36,11 @@ def call(event)
3636 another_handler = TestHandler . new
3737 global_handler = TestHandler . new
3838
39- subscriptions . add_thread_subscription ( handler , [ Test1DomainEvent , Test3DomainEvent ] )
40- subscriptions . add_thread_subscription ( another_handler , [ Test2DomainEvent ] )
39+ subscriptions . add_thread_subscription ( handler , [ ' Test1DomainEvent' , ' Test3DomainEvent' ] )
40+ subscriptions . add_thread_subscription ( another_handler , [ ' Test2DomainEvent' ] )
4141 subscriptions . add_thread_global_subscription ( global_handler )
4242 t = Thread . new do
43- subscriptions . add_thread_subscription ( handler , [ Test2DomainEvent ] )
43+ subscriptions . add_thread_subscription ( handler , [ ' Test2DomainEvent' ] )
4444 subscriptions . add_thread_global_subscription ( another_handler )
4545 expect ( subscriptions . all_for ( 'Test2DomainEvent' ) ) . to eq ( [ another_handler , handler ] )
4646 end
@@ -77,7 +77,7 @@ def call(event)
7777 it 'revokes subscription' do
7878 handler = TestHandler . new
7979
80- revoke = subscriptions . add_subscription ( handler , [ Test1DomainEvent , Test2DomainEvent ] )
80+ revoke = subscriptions . add_subscription ( handler , [ ' Test1DomainEvent' , ' Test2DomainEvent' ] )
8181 expect ( subscriptions . all_for ( 'Test1DomainEvent' ) ) . to eq ( [ handler ] )
8282 expect ( subscriptions . all_for ( 'Test2DomainEvent' ) ) . to eq ( [ handler ] )
8383 revoke . ( )
@@ -99,7 +99,7 @@ def call(event)
9999 it 'revokes thread subscription' do
100100 handler = TestHandler . new
101101
102- revoke = subscriptions . add_thread_subscription ( handler , [ Test1DomainEvent , Test2DomainEvent ] )
102+ revoke = subscriptions . add_thread_subscription ( handler , [ ' Test1DomainEvent' , ' Test2DomainEvent' ] )
103103 expect ( subscriptions . all_for ( 'Test1DomainEvent' ) ) . to eq ( [ handler ] )
104104 expect ( subscriptions . all_for ( 'Test2DomainEvent' ) ) . to eq ( [ handler ] )
105105 revoke . ( )
@@ -117,8 +117,8 @@ def call(event)
117117
118118 it 'subscribes by type of event which is a class' do
119119 handler = TestHandler . new
120- subscriptions . add_subscription ( handler , [ Test1DomainEvent ] )
121- subscriptions . add_thread_subscription ( handler , [ Test1DomainEvent ] )
120+ subscriptions . add_subscription ( handler , [ ' Test1DomainEvent' ] )
121+ subscriptions . add_thread_subscription ( handler , [ ' Test1DomainEvent' ] )
122122
123123 expect ( subscriptions . all_for ( 'Test1DomainEvent' ) ) . to eq ( [ handler , handler ] )
124124 end
0 commit comments