Module: TestProf::BeforeAll::Isolator

Defined in:
lib/test_prof/before_all/isolator.rb

Overview

Disable Isolator within before_all blocks

Instance Method Summary collapse

Instance Method Details

#begin_transactionObject



7
8
9
10
# File 'lib/test_prof/before_all/isolator.rb', line 7

def begin_transaction(*)
  ::Isolator.transactions_threshold += 1
  super
end

#rollback_transactionObject



12
13
14
15
# File 'lib/test_prof/before_all/isolator.rb', line 12

def rollback_transaction(*)
  super
  ::Isolator.transactions_threshold -= 1
end