Skip to content

Commit 8c8ad7a

Browse files
committed
Call the handler directly because the previous test version failed on CI but worked locally.
1 parent 5a9e475 commit 8c8ad7a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

notifications/spec/notifications/slack_notifier_spec.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,10 @@ def given(*domain_events)
176176
.to_return(status: 200, body: {ok: true}.to_json, headers: {})
177177

178178
timer_reset_event = Game::TimerReset.new(data: {slot: 1, game_id: game_id})
179-
event_store.publish(timer_reset_event, stream_name: game_id)
179+
180+
notifier = Notifications::SlackNotifier.new(logger: Rails.logger, event_store: event_store)
181+
notifier.call(timer_reset_event)
182+
180183
expect(stub).to have_been_requested
181184
end
182185
end

0 commit comments

Comments
 (0)