Sha256: 67b593bc25af0169d7953bffced3569829ba0d5904b9b6de40eeefe88586cfcc
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
# ActiveRecord transactional specs (without Rails) Spec::Runner.configure do |config| config.before do ActiveRecord::Base.connection.begin_db_transaction ActiveRecord::Base.connection.increment_open_transactions end config.after 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nosql-tutorial-0.1.1 | lib/public/doc/activerecord/activerecord_spec_helper.rb |