Skip to content

Commit

Permalink
Change test init for 2.7
Browse files Browse the repository at this point in the history
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/
  • Loading branch information
lukaszreszke authored and mostlyobvious committed Sep 29, 2023
1 parent 76a8cc2 commit 4a0c022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ruby_event_store/spec/projection_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module RubyEventStore
)

stats =
Projection.init({})
Projection.init({}, **{})
.on(MoneyDeposited) { |state, event| state[:last_deposit] = event.data[:amount]; state }
.on(MoneyWithdrawn) { |state, event| state[:last_withdrawal] = event.data[:amount]; state }
.call(event_store.read.stream(stream_name))
Expand Down

0 comments on commit 4a0c022

Please sign in to comment.