Sha256: c4cf9091d43b541647cb21e094e42ea1ec8a57f39ab1e4b412842bb7c86fa27c

Contents?: true

Size: 371 Bytes

Versions: 34

Compression:

Stored size: 371 Bytes

Contents

DatabaseCleaner[:active_record].strategy = :transaction if defined? ActiveRecord
DatabaseCleaner[:mongoid].strategy = :truncation if defined? Mongoid

RSpec.configure do |config|
  config.before :suite do
    DatabaseCleaner.clean_with :truncation
  end
  config.before :each do
    DatabaseCleaner.start
  end
  config.after :each do
    DatabaseCleaner.clean
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
money-rails-1.15.0 spec/support/database_cleaner.rb
money-rails-1.14.0 spec/support/database_cleaner.rb
money-rails-1.13.4 spec/support/database_cleaner.rb
money-rails-1.13.3 spec/support/database_cleaner.rb
money-rails-1.13.2 spec/support/database_cleaner.rb
money-rails-1.13.1 spec/support/database_cleaner.rb
money-rails-1.13.0 spec/support/database_cleaner.rb
money-rails-1.12.0 spec/support/database_cleaner.rb
money-rails-1.11.0 spec/support/database_cleaner.rb
money-rails-1.10.0 spec/support/database_cleaner.rb
money-rails-1.9.0 spec/support/database_cleaner.rb
money-rails-1.8.0 spec/support/database_cleaner.rb
money-rails-1.7.0 spec/support/database_cleaner.rb
money-rails-1.6.2 spec/support/database_cleaner.rb
money-rails-1.6.1 spec/support/database_cleaner.rb
money-rails-1.6.0 spec/support/database_cleaner.rb
money-rails-1.5.0 spec/support/database_cleaner.rb
money-rails-1.4.1 spec/support/database_cleaner.rb
money-rails-1.4.0 spec/support/database_cleaner.rb
money-rails-1.3.0 spec/support/database_cleaner.rb