spec/support/database_cleaner.rb in pact_broker-2.0.2 vs spec/support/database_cleaner.rb in pact_broker-2.0.3

- old
+ new

@@ -2,10 +2,14 @@ RSpec.configure do |config| config.before(:suite) do if defined?(::DB) DatabaseCleaner.strategy = :transaction - DatabaseCleaner.clean_with :truncation + if DB.mysql? + DatabaseCleaner.clean_with :deletion + else + DatabaseCleaner.clean_with :truncation + end end end config.before(:each) do | example | unless example.metadata[:no_db_clean]