Sha256: 19a8dbae6253cb2ba3b0ef939a68c2877e5b07910eec7c6e44d155ecd8127552
Contents?: true
Size: 496 Bytes
Versions: 15
Compression:
Stored size: 496 Bytes
Contents
# apparently on rails 2.3 transactions are already started and rolled back? class Test::Unit::TestCase def start_db_transaction! # ActiveRecord::Base.connection.increment_open_transactions # ActiveRecord::Base.connection.begin_db_transaction rescue SQLite3::SQLException => e end def rollback_db_transaction! # ActiveRecord::Base.connection.rollback_db_transaction # ActiveRecord::Base.connection.decrement_open_transactions rescue SQLite3::SQLException => e end end
Version data entries
15 entries across 15 versions & 2 rubygems