Permalink
Browse files

Address ORA-00979: not a GROUP BY expression error

  • Loading branch information...
1 parent f64ba87 commit 0997a14baea5d01fa2083f5bc4c320988f6706ce @yahonda yahonda committed Apr 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/relation_test.rb
@@ -182,7 +182,7 @@ def test_references_values_dont_duplicate
def test_relation_merging_with_merged_joins
special_comments_with_ratings = SpecialComment.joins(:ratings)
posts_with_special_comments_with_ratings = Post.group("posts.id").joins(:special_comments).merge(special_comments_with_ratings)
- assert_equal 3, authors(:david).posts.merge(posts_with_special_comments_with_ratings).to_a.length
+ assert_equal 3, authors(:david).posts.merge(posts_with_special_comments_with_ratings).count.length
end
end

0 comments on commit 0997a14

Please sign in to comment.