Skip to content
This repository
Browse code

Merge pull request #5655 from yahonda/address_ora_00918_with_oracle_f…

…or_3_0

Address an error for test_has_many_through_polymorphic_has_one with Oracle
  • Loading branch information...
commit 72dc7ae95e3dd3a6f42adb550b1e3a78572e8375 2 parents 29320dc + 60272ae
Santiago Pastorino authored March 29, 2012
2  activerecord/test/cases/associations/join_model_test.rb
@@ -384,7 +384,7 @@ def test_has_many_through_has_many_find_by_id
384 384
   end
385 385
 
386 386
   def test_has_many_through_polymorphic_has_one
387  
-    assert_equal Tagging.find(1,2).sort_by { |t| t.id }, authors(:david).taggings.order(:id)
  387
+    assert_equal Tagging.find(1,2).sort_by { |t| t.id }, authors(:david).taggings.order('taggings.id')
388 388
   end
389 389
 
390 390
   def test_has_many_through_polymorphic_has_many

0 notes on commit 72dc7ae

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