diff options
author | Rémy Coutable <remy@rymai.me> | 2017-02-17 18:19:39 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-02-17 20:58:11 +0300 |
commit | bce00bad77306954682316a1823f51df07a8228f (patch) | |
tree | b8f39deb490cc5435fba1d4b562ac92e98167c45 /spec/support/db_cleaner.rb | |
parent | 097924cf056241ee5bdf1cc08ff3be47ea505f8e (diff) |
Truncate the DB in after(:all) test for Gitlab::ImportExport::ProjectTreeRestorer
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/support/db_cleaner.rb')
-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 |