Sha256: 4cac773a464adc1855d868a62414d7f90bcafac9225cf6ecbbd008c394e92925

Contents?: true

Size: 367 Bytes

Versions: 24

Compression:

Stored size: 367 Bytes

Contents

require 'database_cleaner'

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

  config.before(:each) do
    DatabaseCleaner.start if defined?(::DB)
  end

  config.after(:each) do
    DatabaseCleaner.clean if defined?(::DB)
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
pact_broker-1.18.0 spec/support/database_cleaner.rb
pact_broker-1.18.0.beta.1 spec/support/database_cleaner.rb
pact_broker-1.17.2 spec/support/database_cleaner.rb
pact_broker-1.17.1 spec/support/database_cleaner.rb
pact_broker-1.17.0 spec/support/database_cleaner.rb
pact_broker-1.16.0 spec/support/database_cleaner.rb
pact_broker-1.15.0 spec/support/database_cleaner.rb
pact_broker-1.14.0 spec/support/database_cleaner.rb
pact_broker-1.13.0 spec/support/database_cleaner.rb
pact_broker-1.12.0 spec/support/database_cleaner.rb
pact_broker-1.11.2 spec/support/database_cleaner.rb
pact_broker-1.11.1 spec/support/database_cleaner.rb
pact_broker-1.11.0 spec/support/database_cleaner.rb
pact_broker-1.10.0 spec/support/database_cleaner.rb
pact_broker-1.9.3 spec/support/database_cleaner.rb
pact_broker-1.9.2 spec/support/database_cleaner.rb
pact_broker-1.9.1 spec/support/database_cleaner.rb
pact_broker-1.9.0 spec/support/database_cleaner.rb
pact_broker-1.9.0.rc1 spec/support/database_cleaner.rb
pact_broker-1.8.1 spec/support/database_cleaner.rb