Sha256: fbbe3be10cb898711d6d205405907101e9e379fdc72fc781397d378d35b07efe

Contents?: true

Size: 390 Bytes

Versions: 9

Compression:

Stored size: 390 Bytes

Contents

require 'database_cleaner'

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

  config.before do
    DatabaseCleaner.strategy = :transaction
  end

  config.before(:each, :js) do
    DatabaseCleaner.strategy = :truncation
  end

  config.before do
    DatabaseCleaner.start
  end

  config.after do
    DatabaseCleaner.clean
  end
end

Version data entries

9 entries across 9 versions & 4 rubygems

Version Path
solidus_i18n-1.3.0 spec/support/database_cleaner.rb
solidus_i18n-1.2.0 spec/support/database_cleaner.rb
solidus_social-1.2.0 spec/support/database_cleaner.rb
solidus_i18n-1.1.0 spec/support/database_cleaner.rb
solidus_social-1.1.0 spec/support/database_cleaner.rb
solidus_related_products-1.1.0 spec/support/database_cleaner.rb
solidus_related_products-1.0.0 spec/support/database_cleaner.rb
solidus_i18n-1.0.0 spec/support/database_cleaner.rb
spree-last-address-2.2.1 spec/support/database_cleaner.rb