From b80cfda86e611701449e1638403226d531bcb439 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Thu, 18 Oct 2018 14:07:08 +0200 Subject: [PATCH] Added ENV NO_RESET_BEFORE_SUITE to allow RSpec test suite start without DB reset (for e.g. running single tests where no DB reset is needed). --- spec/support/reset_system_before_suite.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/support/reset_system_before_suite.rb b/spec/support/reset_system_before_suite.rb index 7aed3210e..15636f579 100644 --- a/spec/support/reset_system_before_suite.rb +++ b/spec/support/reset_system_before_suite.rb @@ -1,5 +1,7 @@ RSpec.configure do |config| config.before(:suite) do + next if ENV['NO_RESET_BEFORE_SUITE'] + Rake::Task['zammad:db:reset'].invoke end end