Sha256: 11de4bf996e61909b86a42460dd63af988cbd68137c56eb280617a6d9cba2b53

Contents?: true

Size: 416 Bytes

Versions: 3

Compression:

Stored size: 416 Bytes

Contents

# frozen_string_literal: true

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

  config.before(:each) do
    DatabaseCleaner.strategy = :transaction
  end

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

  config.before(:each) do
    DatabaseCleaner.start
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
underlay-2.0 templates/database_cleaner_rspec.rb
underlay-1.52.1 templates/database_cleaner_rspec.rb
underlay-1.50.1 templates/database_cleaner_rspec.rb