Sha256: 3d45c9a0c0594bc496d3b2b87778596daf7b2a2281edfa6ab46b79965df5a707
Contents?: true
Size: 598 Bytes
Versions: 11
Compression:
Stored size: 598 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'active_support/all' require 'active_support/testing/time_helpers' require 'database_cleaner' Bundler.require(:default, :test) ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:') RSpec.configure do |config| config.before(:suite) do DatabaseCleaner.clean_with(:truncation) end config.before(:each) do DatabaseCleaner.strategy = :transaction end config.before(:each) do DatabaseCleaner.start end config.append_after(:each) do DatabaseCleaner.clean end end
Version data entries
11 entries across 11 versions & 1 rubygems