Sha256: ac8a9d2d3f984927da6316eea66910aedca84cd0a9bb1fda4ef6ac34ade90894

Contents?: true

Size: 231 Bytes

Versions: 9

Compression:

Stored size: 231 Bytes

Contents

RSpec.configure do |config|
  config.around(:each) do |example|
    DatabaseCleaner[:active_record].strategy = example.metadata[:js] ? :truncation : :transaction

    DatabaseCleaner.cleaning do
      example.run
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
utensils-4.0.0 lib/utensils/database_cleaner.rb
utensils-3.0.0 lib/utensils/database_cleaner.rb
utensils-2.2.0 lib/utensils/database_cleaner.rb
utensils-2.1.0 lib/utensils/database_cleaner.rb
utensils-2.0.0 lib/utensils/database_cleaner.rb
utensils-1.6.0 lib/utensils/database_cleaner.rb
utensils-1.5.0 lib/utensils/database_cleaner.rb
utensils-1.4.4 lib/utensils/database_cleaner.rb
utensils-1.4.3 lib/utensils/database_cleaner.rb