Permalink
Browse files

Update new tests in cascaded_eager_loading_test.rb to work with the m…

…odified fixtures in this branch
  • Loading branch information...
1 parent 026dbd2 commit 083d6f267611472b8acfb9801e64971ee6d19994 @jonleighton jonleighton committed Oct 31, 2010
Showing with 6 additions and 6 deletions.
  1. +6 −6 activerecord/test/cases/associations/cascaded_eager_loading_test.rb
@@ -51,24 +51,24 @@ def test_cascaded_eager_association_loading_with_join_for_count
categories = Category.joins(:categorizations).includes([{:posts=>:comments}, :authors])
assert_nothing_raised do
- assert_equal 2, categories.count
- assert_equal 2, categories.all.uniq.size # Must uniq since instantiating with inner joins will get dupes
+ assert_equal 3, categories.count
+ assert_equal 3, categories.all.uniq.size # Must uniq since instantiating with inner joins will get dupes
end
end
def test_cascaded_eager_association_loading_with_duplicated_includes
categories = Category.includes(:categorizations).includes(:categorizations => :author).where("categorizations.id is not null")
assert_nothing_raised do
- assert_equal 2, categories.count
- assert_equal 2, categories.all.size
+ assert_equal 3, categories.count
+ assert_equal 3, categories.all.size
end
end
def test_cascaded_eager_association_loading_with_twice_includes_edge_cases
categories = Category.includes(:categorizations => :author).includes(:categorizations => :post).where("posts.id is not null")
assert_nothing_raised do
- assert_equal 2, categories.count
- assert_equal 2, categories.all.size
+ assert_equal 3, categories.count
+ assert_equal 3, categories.all.size
end
end

0 comments on commit 083d6f2

Please sign in to comment.