Skip to content

Commit

Permalink
Workaround for rspec mocks
Browse files Browse the repository at this point in the history
rspec-mocks is having some trouble with regard to keyword arguments
when using and_call_original: [rspec/rspec-mocks#1306](rspec/rspec-mocks#1306)

There was just 1 failing spec due to this, and we actually do
not need to call orginals in this cases.
  • Loading branch information
mpraglowski committed Dec 30, 2020
1 parent e440db5 commit 3a402fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aggregate_root/spec/repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def with_default_event_store(store)
[order_created],
stream_name: stream_name,
expected_version: -1
).and_call_original
)
repository.store(order, stream_name)

order_expired = Orders::Events::OrderExpired.new
Expand All @@ -111,7 +111,7 @@ def with_default_event_store(store)
[order_expired],
stream_name: stream_name,
expected_version: 0
).and_call_original
)
repository.store(order, stream_name)
end
end
Expand Down

0 comments on commit 3a402fb

Please sign in to comment.