Skip to content
This repository
Browse code

Fixed test_joins_with_namespaced_model_should_use_correct_type for po…

…stgresql

Signed-off-by: Michael Koziarski <michael@koziarski.com>
  • Loading branch information...
commit e6bc5c67c005f21b99a2d88ffb0da73f36dbf392 1 parent 2752ceb
Tarmo Tänav tarmo authored
2  activerecord/test/cases/associations/has_many_associations_test.rb
@@ -1003,7 +1003,7 @@ def test_joins_with_namespaced_model_should_use_correct_type
1003 1003 firm.clients.create({ :name => 'Some Client' })
1004 1004
1005 1005 stats = Namespaced::Firm.find(firm.id, {
1006   - :select => "#{Namespaced::Firm.table_name}.*, COUNT(#{Namespaced::Client.table_name}.id) AS num_clients",
  1006 + :select => "#{Namespaced::Firm.table_name}.id, COUNT(#{Namespaced::Client.table_name}.id) AS num_clients",
1007 1007 :joins => :clients,
1008 1008 :group => "#{Namespaced::Firm.table_name}.id"
1009 1009 })

0 comments on commit e6bc5c6

Please sign in to comment.
Something went wrong with that request. Please try again.