Sha256: 96536bc86366a7a16fdfccc4620271fec8d8b7d47d578b98f354ee97b7958d17

Contents?: true

Size: 327 Bytes

Versions: 17

Compression:

Stored size: 327 Bytes

Contents

require "database_cleaner"

RSpec.configure do |config|

  config.before :suite do
    DatabaseCleaner.clean_with :truncation
  end

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

  config.before :each do
    DatabaseCleaner.start
  end

  config.after :each do
    DatabaseCleaner.clean
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
uuids-5.0.0 spec/support/runtime/config/database_cleaner.rb
uuids-4.1.8 spec/support/runtime/config/database_cleaner.rb
uuids-4.1.7 spec/support/runtime/config/database_cleaner.rb
uuids-4.1.6 spec/support/runtime/config/database_cleaner.rb
uuids-4.1.5 spec/support/runtime/config/database_cleaner.rb
uuids-4.1.4 spec/support/runtime/config/database_cleaner.rb
uuids-4.1.3 spec/support/runtime/config/database_cleaner.rb
uuids-4.1.2 spec/support/runtime/config/database_cleaner.rb
uuids-4.1.1 spec/support/runtime/config/database_cleaner.rb
uuids-4.1.0 spec/support/runtime/config/database_cleaner.rb
uuids-4.0.1 spec/support/runtime/config/database_cleaner.rb
uuids-4.0.0 spec/support/runtime/config/database_cleaner.rb
uuids-3.0.0 spec/support/runtime/config/database_cleaner.rb
uuids-2.0.0 spec/support/runtime/config/database_cleaner.rb
uuids-1.4.2 spec/support/runtime/config/database_cleaner.rb
uuids-1.4.1 spec/support/runtime/config/database_cleaner.rb
uuids-1.4.0 spec/initializers/database_cleaner.rb