Sha256: c34c8e5b825be1c716b8df885acacc08d52fe0157afc0a4f0b04599c3d6d6395

Contents?: true

Size: 328 Bytes

Versions: 6

Compression:

Stored size: 328 Bytes

Contents

require 'database_cleaner'

RSpec.configure do |config|

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

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

  config.after do
    DatabaseCleaner.clean
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
post_clerk-0.6 spec/support/database_cleaner.rb
post_clerk-0.5 spec/support/database_cleaner.rb
spree_postal_service-2.4.0 spec/support/database_cleaner.rb
spree_postal_service-2.3.1 spec/support/database_cleaner.rb
spree_postal_service-2.3.0 spec/support/database_cleaner.rb
post_clerk-0.4 spec/support/database_cleaner.rb