Sha256: 42dd5856068694564b6f7f7a1ae218f7a83576508bb6faa48c4ccd95b19e8ba6

Contents?: true

Size: 282 Bytes

Versions: 2

Compression:

Stored size: 282 Bytes

Contents

require "database_cleaner"

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

    DatabaseCleaner.strategy = :truncation
  end

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
attr_masker-0.1.1 spec/support/db_cleaner.rb
attr_masker-0.1.0 spec/support/db_cleaner.rb