Sha256: 8d2b94e3c7976c537af1fe220eda06ff5bb34e82a5d6fde43bfa952cc7b4d692

Contents?: true

Size: 285 Bytes

Versions: 2

Compression:

Stored size: 285 Bytes

Contents

# frozen_string_literal: true

RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner.strategy = :transaction
    DatabaseCleaner.clean_with(:truncation)
  end

  config.around(:each) do |example|
    DatabaseCleaner.cleaning do
      example.run
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
auto_increment-1.6.1 spec/support/database_cleaner.rb
auto_increment-1.6.0 spec/support/database_cleaner.rb