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:
parent
ab9622ee62
commit
cc18034c8c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue