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:
parent
c8ab4275d6
commit
b80cfda86e
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue