db_strategies.rb 237 B

123456789
  1. RSpec.configure do |config|
  2. config.around(:each, db_strategy: :reset) do |example|
  3. self.use_transactional_tests = false
  4. example.run
  5. Rake::Task['zammad:db:reset'].reenable
  6. Rake::Task['zammad:db:reset'].invoke
  7. end
  8. end