From 4580ad31fc172e14c0cc7b194c2e3024e6a0e5c8 Mon Sep 17 00:00:00 2001 From: Andrzej Krzywda Date: Fri, 16 Aug 2024 15:36:45 +0200 Subject: [PATCH] Fix for test fails We should probably find a better strategy instead of destroy_all. --- rails_application/test/read_model_handler_test.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rails_application/test/read_model_handler_test.rb b/rails_application/test/read_model_handler_test.rb index ae91ab73b..bf9be0b03 100644 --- a/rails_application/test/read_model_handler_test.rb +++ b/rails_application/test/read_model_handler_test.rb @@ -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)