Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix test: this should return 0 not 7, since Arel was ignoring select …

…clause and now it's fixed.

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information...
commit 2ce57fd0d9e2c1c1f787a0874f5292d5b2e9e539 1 parent 0ae81a2
Emilio Tagua miloops authored josevalim committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/test/cases/relations_test.rb
2  activerecord/test/cases/relations_test.rb
View
@@ -521,7 +521,7 @@ def test_count_explicit_columns
posts = Post.scoped
assert_equal [0], posts.select('comments_count').where('id is not null').group('id').order('id').count.values.uniq
- assert_equal 7, posts.where('id is not null').select('comments_count').count
+ assert_equal 0, posts.where('id is not null').select('comments_count').count
assert_equal 7, posts.select('comments_count').count('id')
assert_equal 0, posts.select('comments_count').count
Please sign in to comment.
Something went wrong with that request. Please try again.