Browse Source

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).

Thorsten Eckel 6 years ago
parent
commit
b80cfda86e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      spec/support/reset_system_before_suite.rb

+ 2 - 0
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