Sha256: c0cd6c95b2774a54e315cd52a73c865e1132da14d33bdd26d6d744aee949a1db
Contents?: true
Size: 755 Bytes
Versions: 2
Compression:
Stored size: 755 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) require 'coveralls' Coveralls.wear! require 'activemodel/associations' ActiveModel::Associations::Hooks.init ActiveRecord::Base.establish_connection( adapter: "sqlite3", database: ":memory:" ) # Test Class class User < ActiveRecord::Base; end ActiveRecord::Migration.verbose = false ActiveRecord::Migrator.migrate File.expand_path("../db/migrate", __FILE__), nil require 'database_cleaner' RSpec.configure do |config| config.order = :random 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 |
---|---|
activemodel-associations-0.0.2 | spec/spec_helper.rb |
activemodel-associations-0.0.1 | spec/spec_helper.rb |