Class: Test::Unit::TestCase
- Inherits:
-
Object
- Object
- Test::Unit::TestCase
- Defined in:
- lib/fixture_dependencies/test_unit/rails.rb
Direct Known Subclasses
Class Method Summary collapse
- .stupid_method_added ⇒ Object (also: method_added)
Instance Method Summary collapse
-
#setup_with_fixtures ⇒ Object
(also: #setup)
Load fixtures using FixtureDependencies inside a transaction.
Class Method Details
.stupid_method_added ⇒ Object 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_fixtures ⇒ Object 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 |