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

This commit is contained in:
Thorsten Eckel 2018-10-18 14:07:08 +02:00
parent c8ab4275d6
commit b80cfda86e

View file

@ -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