Sha256: 265e9b12ee90f30d91a84bdd268051f6359c59bef0b686de2032a0ffe885ad6d
Contents?: true
Size: 626 Bytes
Versions: 2
Compression:
Stored size: 626 Bytes
Contents
require 'seed_dump' require 'active_support' require 'active_record' require 'tempfile' require 'byebug' require 'database_cleaner' require 'factory_bot' require './spec/helpers' ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => ':memory:') FactoryBot.find_definitions RSpec.configure do |config| 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
seed_dump-3.3.1 | spec/spec_helper.rb |
seed_dump-3.3.0 | spec/spec_helper.rb |