Skip to content

Commit d211c17

Browse files
committed
Change test init for 2.7
The reason is the "Why we’re deprecating the automatic conversion" section in the article below https://www.ruby-lang.org/en/news/2019/12/12/separation-of-positional-and-keyword-arguments-in-ruby-3-0/
1 parent ec04d8b commit d211c17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: ruby_event_store/spec/projection_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module RubyEventStore
5959
)
6060

6161
stats =
62-
Projection.init({})
62+
Projection.init({}, **{})
6363
.on(MoneyDeposited) { |state, event| state[:last_deposit] = event.data[:amount]; state }
6464
.on(MoneyWithdrawn) { |state, event| state[:last_withdrawal] = event.data[:amount]; state }
6565
.call(event_store.read.stream(stream_name))

0 commit comments

Comments
 (0)