Skip to content

Commit

Permalink
Add assertion method
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszreszke committed Sep 24, 2024
1 parent c357f39 commit 708ec51
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions infra/lib/infra/testing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ def assert_changes(actuals, expected)
expects = expected.map(&:data)
assert_equal(expects, actuals.map(&:data))
end

def assert_nothing_published_within
before = event_store.read.to_a
yield
after = event_store.read.to_a
assert_equal before, after
end
end
end

Expand Down

0 comments on commit 708ec51

Please sign in to comment.