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