Class: Test::Unit::TestCase

Inherits:
Object
  • Object
show all
Defined in:
lib/fixture_dependencies/test_unit/rails.rb

Direct Known Subclasses

FixtureDependencies::SequelTestCase

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.stupid_method_addedObject Also known as: method_added



8
# File 'lib/fixture_dependencies/test_unit/rails.rb', line 8

alias_method :stupid_method_added, :method_added

Instance Method Details

#setup_with_fixturesObject Also known as: setup

Load fixtures using FixtureDependencies inside a transaction



14
15
16
17
18
# File 'lib/fixture_dependencies/test_unit/rails.rb', line 14

def setup_with_fixtures
  ActiveRecord::Base.send :increment_open_transactions
  ActiveRecord::Base.connection.begin_db_transaction
  load_fixtures
end