aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/associations/cascaded_eager_loading_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-06-22 17:36:20 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-06-22 17:36:20 +0000
commitdae61089982d079d4ea57ad83340bf5cbdd83d3a (patch)
tree5ed20da186cb983ddceabce1718e95f8191be383 /activerecord/test/associations/cascaded_eager_loading_test.rb
parent989332c734149a7f350a0dd7d483c820552c0267 (diff)
downloadrails-dae61089982d079d4ea57ad83340bf5cbdd83d3a.tar.gz
rails-dae61089982d079d4ea57ad83340bf5cbdd83d3a.tar.bz2
rails-dae61089982d079d4ea57ad83340bf5cbdd83d3a.zip
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
Diffstat (limited to 'activerecord/test/associations/cascaded_eager_loading_test.rb')
-rw-r--r--activerecord/test/associations/cascaded_eager_loading_test.rb4
1 files changed, 2 insertions, 2 deletions
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