Skip to content

Commit 753e6cd

Browse files
committed
Register PlayerRegistered handler to properly set registered_slots.
1 parent 4b80b84 commit 753e6cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

notifications/spec/spec_helper.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ def event_store
1919
->(event) { Notifications::SlackNotifier.new(logger: Rails.logger, event_store: client).call(event) },
2020
to: [Game::NewTurnStarted, Game::PlayerDisconnected, Game::TimerReset]
2121
)
22+
client.subscribe(
23+
->(event) { ReadModel::GameReadModelUpdater.new(logger: Rails.logger).call(event) },
24+
to: [Game::PlayerRegistered]
25+
)
2226
end
2327
end
2428
end

0 commit comments

Comments
 (0)