Sha256: b92da7b07ed932c21c447cd0f519d844349a40552f5feb8f96336bb5acdb38fb

Contents?: true

Size: 364 Bytes

Versions: 8

Compression:

Stored size: 364 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 = example.metadata[:js] ? :truncation : :transaction
    DatabaseCleaner.start
  end

  config.after do
    DatabaseCleaner.clean
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
spree-print-invoice-2.2.0 spec/support/databse_cleaner.rb
spree-print-invoice-2.1.0 spec/support/databse_cleaner.rb
spree-faq-2.2.0 spec/support/database_cleaner.rb
spree-faq-2.1.0 spec/support/database_cleaner.rb
spree-faq-2.0.0 spec/support/database_cleaner.rb
spree-last-address-2.0.0 spec/support/database_cleaner.rb
spree-last-address-2.1.1 spec/support/database_cleaner.rb
spree-last-address-2.2.0 spec/support/database_cleaner.rb