From 7c1bdbffd288eb38ed8a2f9438810c4d6ce92036 Mon Sep 17 00:00:00 2001 From: Callum Knights Date: Thu, 9 Nov 2023 12:50:06 +0000 Subject: [PATCH] Change Database Cleaner strategy for Mongoid --- spec/service_consumers/pact_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/service_consumers/pact_helper.rb b/spec/service_consumers/pact_helper.rb index 7172e477..bccc3ae4 100644 --- a/spec/service_consumers/pact_helper.rb +++ b/spec/service_consumers/pact_helper.rb @@ -35,7 +35,7 @@ def url_encode(str) set_up do WebMock.enable! WebMock.reset! - DatabaseCleaner.clean_with :truncation + DatabaseCleaner.clean_with :deletion GDS::SSO.test_user = create(:user) AssetManager.s3 = S3Configuration.build allow(AssetManager.s3).to receive(:fake?).and_return(false)