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.5.8 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.5.7 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.5.6 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.5.5 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.5.4 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.5.3 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.5.2 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.5.1 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.5.0 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.4.4 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.4.3 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.4.2 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.4.1 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.4.0 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.3.6 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.3.5 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.3.4 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.3.3 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.3.2 lib/agilibox/cucumber_helpers/database_cleaner.rb
agilibox-1.3.1 lib/agilibox/cucumber_helpers/database_cleaner.rb