Sha256: aca7d0133444f877a90b41df7c51b2ddee600023c6d309b94fab81187441769f

Contents?: true

Size: 391 Bytes

Versions: 5

Compression:

Stored size: 391 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

5 entries across 5 versions & 3 rubygems

Version Path
solidus_volume_pricing-0.2.0 spec/support/database_cleaner.rb
solidus_volume_pricing-0.1.0 spec/support/database_cleaner.rb
solidus_comments-1.0.1 spec/support/database_cleaner.rb
solidus_comments-1.0.0 spec/support/database_cleaner.rb
solidus_social-1.0.0 spec/support/database_cleaner.rb