Skip to content

Commit

Permalink
Fix for test fails
Browse files Browse the repository at this point in the history
We should probably find a better strategy instead of destroy_all.
  • Loading branch information
andrzejkrzywda committed Aug 16, 2024
1 parent eb6369f commit 4580ad3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rails_application/test/read_model_handler_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ class ReadModelHandlerTest < InMemoryTestCase
cover "CreateRecord*"
cover "CopyEventAttribute*"

def setup
super
PublicOffer::Product.destroy_all
end

def test_create_record
event = product_registered
event_store.append(event)
Expand Down

0 comments on commit 4580ad3

Please sign in to comment.