Skip to content

Commit 4a0c022

Browse files
lukaszreszkemostlyobvious
authored andcommitted
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 76a8cc2 commit 4a0c022

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)