Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-02-17 18:19:39 +0300
committerRémy Coutable <remy@rymai.me>2017-02-17 20:58:11 +0300
commitbce00bad77306954682316a1823f51df07a8228f (patch)
treeb8f39deb490cc5435fba1d4b562ac92e98167c45 /spec/support/db_cleaner.rb
parent097924cf056241ee5bdf1cc08ff3be47ea505f8e (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.rb4
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