diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-30 09:37:17 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-30 10:17:34 -0700 |
commit | cc18034c8c182df51a4fcb1a0a9b662f97d1f53d (patch) | |
tree | 5ba4123e7e6127f446052fc1c6ed66b095e4055e /activerecord/test/cases | |
parent | ab9622ee62e4ae6372fab69b9b148875be573a22 (diff) | |
download | rails-cc18034c8c182df51a4fcb1a0a9b662f97d1f53d.tar.gz rails-cc18034c8c182df51a4fcb1a0a9b662f97d1f53d.tar.bz2 rails-cc18034c8c182df51a4fcb1a0a9b662f97d1f53d.zip |
group clause must be more specific
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/calculations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/calculations_test.rb b/activerecord/test/cases/calculations_test.rb index 3f963fc89a..7ec40906d4 100644 --- a/activerecord/test/cases/calculations_test.rb +++ b/activerecord/test/cases/calculations_test.rb @@ -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 |