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-2.0.0 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.11.0 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.10.5 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.10.2 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.10.1 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.10.0 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.20 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.19 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.18 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.17 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.16 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.15 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.14 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.13 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.12 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.11 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.10 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.9 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.8 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.9.7 lib/agilibox/cucumber_helpers/database_cleaner.rb