Sha256: 6245b2a40d98a275d1feb297a3053ffa2bd2512bf01fa44aaa5821cba27b6fa5
Contents?: true
Size: 684 Bytes
Versions: 2
Compression:
Stored size: 684 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'minitest/autorun' require 'minitest/spec' require 'purdytest' require 'active_record' require 'active_record-duplicate' require 'active_record-duplicate/railtie' ActiveRecord::Duplicate::Railtie.insert class MiniTest::Spec before do ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:') ActiveRecord::Schema.verbose = false # Anonymous record class ActiveRecord::Schema.define do create_table :records end end after do ActiveRecord::Base.connection.tables.each do |table| ActiveRecord::Base.connection.drop_table(table) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerecord-duplicate-0.4.1 | spec/spec_helper.rb |
activerecord-duplicate-0.4.0 | spec/spec_helper.rb |