Sha256: 8575c9de7cee4835d1cdd8ad4a19a98c72b35658d7367c3dc98f72acd1be7726

Contents?: true

Size: 385 Bytes

Versions: 148

Compression:

Stored size: 385 Bytes

Contents

RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner.clean_with(:deletion)
  end

  config.before(:each) do
    DatabaseCleaner.strategy = :transaction
  end

  config.before(:each, js: true) do
    DatabaseCleaner.strategy = :deletion
  end

  config.before(:each) do
    DatabaseCleaner.start
  end

  config.after(:each) do
    DatabaseCleaner.clean
  end
end

Version data entries

148 entries across 148 versions & 22 rubygems

Version Path
voyage-1.44.0.3 templates/database_cleaner_rspec.rb
voyage-1.44.0.2 templates/database_cleaner_rspec.rb
voyage-1.44.0.1 templates/database_cleaner_rspec.rb
suspenders-1.44.0 templates/database_cleaner_rspec.rb
kazan-0.3.1 templates/database_cleaner.rb
armadura-0.1.2 templates/database_cleaner_rspec.rb
kazan-0.3.0 templates/database_cleaner.rb
suspenders-1.43.0 templates/database_cleaner_rspec.rb
kazan-0.2.4 templates/database_cleaner.rb
kazan-0.2.3 templates/database_cleaner.rb
kazan-0.2.2 templates/database_cleaner.rb
kazan-0.2.1 templates/database_cleaner.rb
kazan-0.2.0 templates/database_cleaner.rb
kazan-0.1.2 templates/database_cleaner.rb
kazan-0.1.1 templates/database_cleaner.rb
kazan-0.1.0 templates/database_cleaner.rb
slining-1.6.0 templates/database_cleaner_rspec.rb
armadura-0.1.1 templates/database_cleaner_rspec.rb
armadura-0.1.0 templates/database_cleaner_rspec.rb
anadea-spark-0.5.0 templates/spec/support/database_cleaner_rspec.rb