Sha256: 04abeb7f315e656432ba72a3beef3f2f477fc7c4f385a17b2df27d2ffb67b241

Contents?: true

Size: 341 Bytes

Versions: 3

Compression:

Stored size: 341 Bytes

Contents

# frozen_string_literal: true
RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner.strategy = :transaction
    DatabaseCleaner.clean_with :truncation
  end

  config.around(:each) do |example|
    DatabaseCleaner.cleaning do
      example.run
    end
  end

  config.after(:each) do
    DatabaseCleaner.clean
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
generapp-0.4.0 templates/spec/database_cleaner.rb
generapp-0.3.2 templates/spec/database_cleaner.rb
generapp-0.3.1 templates/spec/database_cleaner.rb