aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Pignata <john.pignata@gmail.com>2009-08-15 00:05:26 -0400
committerJeremy Kemper <jeremy@bitsweat.net>2009-08-15 19:14:32 -0700
commit7213da37cefff7801a61f302a647e337e2313858 (patch)
tree3144fb92047879eb59851d141adce18a30b3dbd1
parentcb3e669b0df3a962a82b9c47933d65b1a24762b8 (diff)
downloadrails-7213da37cefff7801a61f302a647e337e2313858.tar.gz
rails-7213da37cefff7801a61f302a647e337e2313858.tar.bz2
rails-7213da37cefff7801a61f302a647e337e2313858.zip
Fix test_has_many_through_polymorphic_has_one on sqlite2 [#3054 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
-rw-r--r--activerecord/test/cases/associations/join_model_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/join_model_test.rb b/activerecord/test/cases/associations/join_model_test.rb
index c035600e69..e9af5a60d8 100644
--- a/activerecord/test/cases/associations/join_model_test.rb
+++ b/activerecord/test/cases/associations/join_model_test.rb
@@ -381,7 +381,7 @@ class AssociationsJoinModelTest < ActiveRecord::TestCase
end
def test_has_many_through_polymorphic_has_one
- assert_equal Tagging.find(1,2), authors(:david).tagging
+ assert_equal Tagging.find(1,2).sort_by { |t| t.id }, authors(:david).tagging
end
def test_has_many_through_polymorphic_has_many