diff options
author | Jamis Buck <jamis@37signals.com> | 2005-06-10 14:58:02 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-06-10 14:58:02 +0000 |
commit | 2c0fa3208859aed2c1fd0ce54c8d5215d11d0c75 (patch) | |
tree | b65523d2f9c2d0b79bc0b65157e966ee36ebd1a2 /activerecord/test/modules_test.rb | |
parent | 7f9ffb2ebf1a0230368f54a6372cb7196c90177e (diff) | |
download | rails-2c0fa3208859aed2c1fd0ce54c8d5215d11d0c75.tar.gz rails-2c0fa3208859aed2c1fd0ce54c8d5215d11d0c75.tar.bz2 rails-2c0fa3208859aed2c1fd0ce54c8d5215d11d0c75.zip |
Do not use instantiated fixtures (in general) in tests. Also, support the use of transactional fixtures by setting the AR_TX_FIXTURES environment variable to "yes".
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/modules_test.rb')
-rw-r--r-- | activerecord/test/modules_test.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/activerecord/test/modules_test.rb b/activerecord/test/modules_test.rb index d9c9ae650c..f13d140b6d 100644 --- a/activerecord/test/modules_test.rb +++ b/activerecord/test/modules_test.rb @@ -2,12 +2,7 @@ require 'abstract_unit' require 'fixtures/company_in_module' class ModulesTest < Test::Unit::TestCase - def setup - create_fixtures "accounts" - create_fixtures "companies" - create_fixtures "projects" - create_fixtures "developers" - end + fixtures :accounts, :companies, :projects, :developers def test_module_spanning_associations assert MyApplication::Business::Firm.find_first.has_clients?, "Firm should have clients" @@ -25,4 +20,4 @@ class ModulesTest < Test::Unit::TestCase def test_associations_spanning_cross_modules assert MyApplication::Billing::Account.find(1).has_firm?, "37signals account should be able to backtrack" end -end
\ No newline at end of file +end |