From 4a0c022b595b99ec592e08aac20e482199fdc91f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Reszke?= Date: Wed, 12 Apr 2023 11:53:13 +0200 Subject: [PATCH] Change test init for 2.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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/ --- ruby_event_store/spec/projection_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby_event_store/spec/projection_spec.rb b/ruby_event_store/spec/projection_spec.rb index 97491bddf2..a12cc0cabb 100644 --- a/ruby_event_store/spec/projection_spec.rb +++ b/ruby_event_store/spec/projection_spec.rb @@ -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))