diff options
author | Rémy Coutable <remy@rymai.me> | 2017-02-17 16:19:39 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-02-17 18:58:11 +0100 |
commit | bce00bad77306954682316a1823f51df07a8228f (patch) | |
tree | b8f39deb490cc5435fba1d4b562ac92e98167c45 /spec/support | |
parent | 097924cf056241ee5bdf1cc08ff3be47ea505f8e (diff) | |
download | gitlab-ce-bce00bad77306954682316a1823f51df07a8228f.tar.gz |
Truncate the DB in after(:all) test for Gitlab::ImportExport::ProjectTreeRestorerrc/backport-ee-fix
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/db_cleaner.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/db_cleaner.rb b/spec/support/db_cleaner.rb index 247f0954221..6f31828b825 100644 --- a/spec/support/db_cleaner.rb +++ b/spec/support/db_cleaner.rb @@ -3,6 +3,10 @@ RSpec.configure do |config| DatabaseCleaner.clean_with(:truncation) end + config.append_after(:context) do + DatabaseCleaner.clean_with(:truncation) + end + config.before(:each) do DatabaseCleaner.strategy = :transaction end |