diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-01 10:04:33 -0300 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-09-01 15:09:38 +0200 |
commit | 2ce57fd0d9e2c1c1f787a0874f5292d5b2e9e539 (patch) | |
tree | dbec7e814d2b477b832d7f046430a24a91c91ee5 /activerecord/test | |
parent | 0ae81a21243961f4d2481e9b87e3c807291d21a9 (diff) | |
download | rails-2ce57fd0d9e2c1c1f787a0874f5292d5b2e9e539.tar.gz rails-2ce57fd0d9e2c1c1f787a0874f5292d5b2e9e539.tar.bz2 rails-2ce57fd0d9e2c1c1f787a0874f5292d5b2e9e539.zip |
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>
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index aa75aa27d4..be038bfa74 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -521,7 +521,7 @@ class RelationTest < ActiveRecord::TestCase 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 |