Sha256: 3914ff9e53c7d8b0a29f75f80a5e60fb3632907973e310dcd1af7846427584e3

Contents?: true

Size: 281 Bytes

Versions: 2

Compression:

Stored size: 281 Bytes

Contents

require 'database_cleaner'

RSpec.configure do |config|
  config.before :suite do
    DatabaseCleaner.strategy = :truncation
    DatabaseCleaner.clean_with :truncation
  end

  config.before do
    DatabaseCleaner.start
  end

  config.after do
    DatabaseCleaner.clean
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
memdash-0.1.0 spec/support/database_cleaner.rb
memdash-0.0.1 spec/support/database_cleaner.rb