Sha256: 305e659a53a025e912a918d2d5b3624c1082d290e7fd281f574242d6922efee7

Contents?: true

Size: 357 Bytes

Versions: 5

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

require 'database_cleaner'

RSpec.configure do |config|
  config.before :suite do
    DatabaseCleaner.strategy = :transaction

    DatabaseCleaner.clean_with :truncation
  end

  config.before :each do
    DatabaseCleaner.start
  end

  config.around do |spec|
    DatabaseCleaner.cleaning do
      spec.run
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
attachy-0.4.1 spec/support/database_cleaner.rb
attachy-0.4.0 spec/support/database_cleaner.rb
attachy-0.3.0 spec/support/database_cleaner.rb
attachy-0.2.0 spec/support/database_cleaner.rb
breadcrumby-0.1.0 spec/support/database_cleaner.rb