Sha256: 2528d3bd9d83b2f2a3f1b5cc53039d6566ccdf9cf2fae4171e7fbd134ebc0ff4

Contents?: true

Size: 285 Bytes

Versions: 73

Compression:

Stored size: 285 Bytes

Contents

require "database_cleaner"

Cucumber::Rails::Database.autorun_database_cleaner = false
Cucumber::Rails::Database.javascript_strategy      = :truncation

After do |_scenario, _block|
  DatabaseCleaner.clean_with(:truncation, except: Agilibox::CucumberConfig.databasecleaner_tables)
end

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
agilibox-1.9.6 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.5 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.4 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.3 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.1 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.0 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.8.0 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.7.4 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.7.3 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.7.2 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.7.1 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.7.0 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.6.2 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.6.1 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.6.0 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.5.13 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.5.12 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.5.11 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.5.10 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.5.9 lib/agilibox/cucumber_helpers/database_cleaner.rb