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

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--features/support/env.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/features/support/env.rb b/features/support/env.rb
index cf95b37ef..f8ebb4a00 100644
--- a/features/support/env.rb
+++ b/features/support/env.rb
@@ -51,6 +51,9 @@ Capybara.default_max_wait_time = 30
# of your scenarios, as this makes it hard to discover errors in your application.
ActionController::Base.allow_rescue = false
+# TODO: Temporary fix for rails 5, remove the next line after a new version of database_cleaner is released.
+# See https://github.com/DatabaseCleaner/database_cleaner/issues/445
+Cucumber::Rails::Database.javascript_strategy = :truncation, {except: %w[ar_internal_metadata]}
Cucumber::Rails::Database.autorun_database_cleaner = true
Cucumber::Rails::World.use_transactional_tests = false