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/reflection_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/reflection_test.rb')
-rw-r--r-- | activerecord/test/reflection_test.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/activerecord/test/reflection_test.rb b/activerecord/test/reflection_test.rb index cdf7a63118..a892fb4acb 100644 --- a/activerecord/test/reflection_test.rb +++ b/activerecord/test/reflection_test.rb @@ -5,10 +5,9 @@ require 'fixtures/company' require 'fixtures/company_in_module' class ReflectionTest < Test::Unit::TestCase + fixtures :topics, :customers, :companies + def setup - @topics = create_fixtures "topics" - @customers = create_fixtures "customers" - @companies = create_fixtures "companies" @first = Topic.find(1) end @@ -78,4 +77,4 @@ class ReflectionTest < Test::Unit::TestCase assert_equal MyApplication::Business::Client, MyApplication::Business::Firm.reflect_on_association(:clients_of_firm).klass assert_equal MyApplication::Business::Firm, MyApplication::Billing::Account.reflect_on_association(:firm).klass end -end
\ No newline at end of file +end |