aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/associations_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-08-26 02:38:48 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2008-08-26 02:38:48 -0700
commitab1e82b8f7279301e4363decdef84719f9304443 (patch)
tree27d609dad4dabcbb2132b355f971ce3c002a3a9c /activerecord/test/cases/associations_test.rb
parent0c7bbc72fc043ad5debbff34da81f3d68f516d3f (diff)
downloadrails-ab1e82b8f7279301e4363decdef84719f9304443.tar.gz
rails-ab1e82b8f7279301e4363decdef84719f9304443.tar.bz2
rails-ab1e82b8f7279301e4363decdef84719f9304443.zip
Include people and readers fixtures to fix test isolation error
Diffstat (limited to 'activerecord/test/cases/associations_test.rb')
-rw-r--r--activerecord/test/cases/associations_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations_test.rb b/activerecord/test/cases/associations_test.rb
index 4904feeb7d..0b2731ecd7 100644
--- a/activerecord/test/cases/associations_test.rb
+++ b/activerecord/test/cases/associations_test.rb
@@ -27,7 +27,7 @@ require 'models/sponsor'
class AssociationsTest < ActiveRecord::TestCase
fixtures :accounts, :companies, :developers, :projects, :developers_projects,
- :computers
+ :computers, :people, :readers
def test_include_with_order_works
assert_nothing_raised {Account.find(:first, :order => 'id', :include => :firm)}
@@ -45,7 +45,7 @@ class AssociationsTest < ActiveRecord::TestCase
assert_equal [], person.readers.find(:all)
person.save!
reader = Reader.create! :person => person, :post => Post.new(:title => "foo", :body => "bar")
- assert_equal [reader], person.readers.find(:all)
+ assert person.readers.find(reader.id)
end
def test_force_reload