Sha256: c8157b3b61846358ac8e0032abb7e46e5b28b3644309d4a1e674d82ffaa6dede

Contents?: true

Size: 346 Bytes

Versions: 3

Compression:

Stored size: 346 Bytes

Contents

require 'database_cleaner'

RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner.strategy = :transaction
    DatabaseCleaner.clean_with(:truncation, except: %w(ar_internal_metadata countries country_translations))
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ab_admin-0.11.0 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.10.0 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb
ab_admin-0.9.0 lib/generators/ab_admin/install/templates/spec/support/database_cleaner.rb