diff options
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 93ca0ce9f76..1100d42f529 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -242,6 +242,9 @@ RSpec.configure do |config| schema_migrate_up! Gitlab::CurrentSettings.clear_in_memory_application_settings! + + # Migrating may add data to the DB so we force a cleanup here + DatabaseCleaner.clean_with(:deletion, cache_tables: false) end config.around(:each, :nested_groups) do |example| |