Sha256: edfb93116d17726ac646b79e74c5d7c7726897673b43d0de519fa43693a8fa09
Contents?: true
Size: 673 Bytes
Versions: 7
Compression:
Stored size: 673 Bytes
Contents
require 'seed_dump' require 'active_support' require 'active_record' require 'byebug' require 'database_cleaner' require 'factory_girl' require './spec/helpers' ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:') FactoryGirl.find_definitions RSpec.configure do |config| config.treat_symbols_as_metadata_keys_with_true_values = true config.order = 'random' config.include Helpers config.before(:suite) do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation) end config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end end
Version data entries
7 entries across 7 versions & 1 rubygems