Sha256: a32d803a0c6e3e35a973521ba904659d4ae060d1ba18b9f011cb82c880134676
Contents?: true
Size: 702 Bytes
Versions: 2
Compression:
Stored size: 702 Bytes
Contents
require File.dirname(__FILE__) + '/../lib/aux_codes' require 'spec' ActiveRecord::Base.establish_connection :adapter => 'sqlite3', :database => ':memory:' AuxCodes::CreateAuxCodes.verbose = false AuxCodes::CreateAuxCodes.migrate :up # use transactions AuxCode; # hit one of the AR classes Spec::Runner.configure do |config| config.before(:each) do ActiveRecord::Base.connection.increment_open_transactions ActiveRecord::Base.connection.begin_db_transaction end config.after(:each) do if ActiveRecord::Base.connection.open_transactions != 0 ActiveRecord::Base.connection.rollback_db_transaction ActiveRecord::Base.connection.decrement_open_transactions end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
remi-aux_codes-1.0.5 | spec/spec_helper.rb |
remi-aux_codes-1.0.6 | spec/spec_helper.rb |