Class: Standby::Transaction

Inherits:
Object
  • Object
show all
Defined in:
lib/standby/transaction.rb

Constant Summary collapse

TEST_CONFIG_METHODS =

The methods on ActiveSupport::TestCase which can potentially be used to determine if transactional fixtures are enabled

[
  :use_transactional_tests,
  :use_transactional_fixtures
]

Class Method Summary collapse

Class Method Details

.base_depthObject



11
12
13
14
15
16
17
18
19
# File 'lib/standby/transaction.rb', line 11

def base_depth
  @base_depth ||= if defined?(ActiveSupport::TestCase) &&
    transactional_fixtures_enabled?
  then
    1
  else
    0
  end
end