Skip to content

Commit 0f42c10

Browse files
committed
Publish the event to allow sideeffect to take place.
1 parent 176cdd7 commit 0f42c10

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

notifications/spec/notifications/slack_notifier_spec.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,10 @@ def given(*domain_events)
181181
Game::PlayerRegistered.new(data: {slot_id: 2, player_id: player_2}),
182182
Game::PlayerRegistered.new(data: {slot_id: 3, player_id: player_3}),
183183
Game::NewTurnStarted.new(data: {turn: 1}),
184-
Game::TimerReset.new(data: {slot: 1, game_id: game_id}),
185184
)
185+
186+
timer_reset_event = Game::TimerReset.new(data: {slot: 1, game_id: game_id})
187+
event_store.publish(timer_reset_event, stream_name: game_id)
186188
expect(stub).to have_been_requested
187189
end
188190
end

0 commit comments

Comments
 (0)