Sha256: 74e35a4cf212726550878380d8d7025fd016744ea57e5083c6188f02b336f8db
Contents?: true
Size: 377 Bytes
Versions: 2
Compression:
Stored size: 377 Bytes
Contents
# frozen_string_literal: true begin require 'database_cleaner' Before('not @no-database-cleaner') do DatabaseCleaner.start if Cucumber::Rails::Database.autorun_database_cleaner end After('not @no-database-cleaner') do DatabaseCleaner.clean if Cucumber::Rails::Database.autorun_database_cleaner end rescue LoadError # database_cleaner gem not present end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumber-rails-2.0.0 | lib/cucumber/rails/hooks/database_cleaner.rb |
cucumber-rails-1.8.0 | lib/cucumber/rails/hooks/database_cleaner.rb |