Module: Journaled::Connection::TestOnlyBehaviors
- Included in:
- Journaled::Connection
- Defined in:
- lib/journaled/connection.rb
Instance Method Summary collapse
Instance Method Details
#transaction_open? ⇒ Boolean
40 41 42 43 |
# File 'lib/journaled/connection.rb', line 40 def transaction_open? # Transactional fixtures wrap all tests in an outer, non-joinable transaction: super && (connection.open_transactions > 1 || connection.current_transaction.joinable?) end |