From dae61089982d079d4ea57ad83340bf5cbdd83d3a Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 22 Jun 2007 17:36:20 +0000 Subject: Update tests' use of fixtures for the new collections api. Closes #8726. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/associations/cascaded_eager_loading_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/test/associations/cascaded_eager_loading_test.rb') diff --git a/activerecord/test/associations/cascaded_eager_loading_test.rb b/activerecord/test/associations/cascaded_eager_loading_test.rb index 863af199ce..78b9861d54 100644 --- a/activerecord/test/associations/cascaded_eager_loading_test.rb +++ b/activerecord/test/associations/cascaded_eager_loading_test.rb @@ -55,7 +55,7 @@ class CascadedEagerLoadingTest < Test::Unit::TestCase def test_eager_association_loading_with_acts_as_tree roots = TreeMixin.find(:all, :include=>"children", :conditions=>"mixins.parent_id IS NULL", :order=>"mixins.id") - assert_equal [mixins(:tree_1), mixins(:tree2_1), mixins(:tree3_1)], roots + assert_equal mixins(:tree_1, :tree2_1, :tree3_1), roots assert_no_queries do assert_equal 2, roots[0].children.size assert_equal 0, roots[1].children.size @@ -73,7 +73,7 @@ class CascadedEagerLoadingTest < Test::Unit::TestCase def test_eager_association_loading_with_has_many_sti topics = Topic.find(:all, :include => :replies, :order => 'topics.id') - assert_equal [topics(:first), topics(:second)], topics + assert_equal topics(:first, :second), topics assert_no_queries do assert_equal 1, topics[0].replies.size assert_equal 0, topics[1].replies.size -- cgit v1.2.3