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
philosophies-suspenders-2.2.6 templates/database_cleaner_rspec.rb
philosophies-suspenders-2.2.4 templates/database_cleaner_rspec.rb
philosophies-suspenders-2.2.3 templates/database_cleaner_rspec.rb
kazan-0.5.0 templates/database_cleaner.rb
kazan-0.4.0 templates/database_cleaner.rb
slining-1.7.0 templates/database_cleaner_rspec.rb
suspenders-1.45.0 templates/database_cleaner_rspec.rb
philosophies-suspenders-2.2.2 templates/database_cleaner_rspec.rb
voyage-1.44.0.14 templates/database_cleaner_rspec.rb
voyage-1.44.0.13 templates/database_cleaner_rspec.rb
gimbal-0.3.0 templates/database_cleaner_rspec.rb
voyage-1.44.0.11 templates/database_cleaner_rspec.rb
voyage-1.44.0.12 templates/database_cleaner_rspec.rb
voyage-1.44.0.10 templates/database_cleaner_rspec.rb
voyage-1.44.0.9 templates/database_cleaner_rspec.rb
voyage-1.44.0.8 templates/database_cleaner_rspec.rb
voyage-1.44.0.7 templates/database_cleaner_rspec.rb
voyage-1.44.0.6 templates/database_cleaner_rspec.rb
voyage-1.44.0.5 templates/database_cleaner_rspec.rb
voyage-1.44.0.4 templates/database_cleaner_rspec.rb