1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

group clause must be more specific

This commit is contained in:
Aaron Patterson 2010-09-30 09:37:17 -07:00
parent ab9622ee62
commit cc18034c8c

View file

@ -281,7 +281,7 @@ class CalculationsTest < ActiveRecord::TestCase
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