Permalink
Browse files

group clause must be more specific

  • Loading branch information...
1 parent 43f404e commit de3c0d7eb4b8b47d963c1262a43a38dd78469d35 @tenderlove tenderlove committed Sep 30, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/calculations_test.rb
@@ -281,7 +281,7 @@ def test_should_count_field_in_joined_table
end
def test_should_count_field_in_joined_table_with_group_by
- c = Account.count('companies.id', :group => :firm_id, :joins => :firm)
+ c = Account.count('companies.id', :group => 'accounts.firm_id', :joins => :firm)
[1,6,2,9].each { |firm_id| assert c.keys.include?(firm_id) }
end

0 comments on commit de3c0d7

Please sign in to comment.