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.3.0 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.2.3 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.2.2 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.2.1 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.2.0 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.1.0 features/support/database_cleaner.rb
agilibox-1.0.15 features/support/database_cleaner.rb
agilibox-1.0.14 features/support/database_cleaner.rb
agilibox-1.0.13 features/support/database_cleaner.rb
agilibox-1.0.12 features/support/database_cleaner.rb
agilibox-1.0.11 features/support/database_cleaner.rb
agilibox-1.0.10 features/support/database_cleaner.rb
agilibox-1.0.9 features/support/database_cleaner.rb