1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/features/support/database_cleaner.rb

23 lines
767 B
Ruby

# frozen_string_literal: true
require 'database_cleaner/cucumber'
DatabaseCleaner.strategy = :transaction
DatabaseCleaner.clean_with :truncation
# You may also want to configure DatabaseCleaner to use different strategies
# for certain features and scenarios. See the DatabaseCleaner documentation
# for details. Example:
#
# Before('@no-txn,@selenium,@culerity,@celerity,@javascript') do
# # { except: [:widgets] } may not do what you expect here
# # as Cucumber::Rails::Database.javascript_strategy overrides
# # this setting.
# DatabaseCleaner.strategy = :truncation
# end
#
# Before('not @no-txn', 'not @selenium', 'not @culerity', 'not @celerity',
# 'not @javascript') do
# DatabaseCleaner.strategy = :transaction
# end
#