Sha256: 7516cf13f5c916f9d595372ced0777616b21af262470f69b8f04584412df8e0d

Contents?: true

Size: 278 Bytes

Versions: 2

Compression:

Stored size: 278 Bytes

Contents

require 'rspec/rails'
require 'database_cleaner'

DatabaseCleaner.strategy = :truncation

RSpec.configure do |config|
  config.use_transactional_fixtures = false
  config.before :each do
    DatabaseCleaner.start
  end
  config.after :each do
    DatabaseCleaner.clean
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sim-0.0.2 lib/sim/support/database_cleaner.rb
sim-0.0.1 lib/sim/support/database_cleaner.rb