diff options
author | Yasuo Honda <yasuo.honda@gmail.com> | 2013-04-11 22:27:07 +0900 |
---|---|---|
committer | Yasuo Honda <yasuo.honda@gmail.com> | 2013-04-11 22:27:07 +0900 |
commit | 0997a14baea5d01fa2083f5bc4c320988f6706ce (patch) | |
tree | c9ecf51eb5b1d36b189d57acfadf99613ceae737 /activerecord/test/cases | |
parent | f64ba8782ee8b52beee2843d77e39fd9d5c1f19c (diff) | |
download | rails-0997a14baea5d01fa2083f5bc4c320988f6706ce.tar.gz rails-0997a14baea5d01fa2083f5bc4c320988f6706ce.tar.bz2 rails-0997a14baea5d01fa2083f5bc4c320988f6706ce.zip |
Address ORA-00979: not a GROUP BY expression error
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/relation_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relation_test.rb b/activerecord/test/cases/relation_test.rb index 1967d8716a..34ecdb3cc9 100644 --- a/activerecord/test/cases/relation_test.rb +++ b/activerecord/test/cases/relation_test.rb @@ -182,7 +182,7 @@ module ActiveRecord 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 |