diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-30 22:47:28 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-30 22:47:28 -0700 |
commit | c50223b76fdb843dc7e4d4522627a5b20f955a03 (patch) | |
tree | d21b82492778f6e68475765cd19931cd992273b0 | |
parent | a59a3db1f3ae8c6aadaa8e1ce08b05f9ad677932 (diff) | |
download | rails-c50223b76fdb843dc7e4d4522627a5b20f955a03.tar.gz rails-c50223b76fdb843dc7e4d4522627a5b20f955a03.tar.bz2 rails-c50223b76fdb843dc7e4d4522627a5b20f955a03.zip |
Fix tests that assumed implicit order by id
-rw-r--r-- | activerecord/test/cases/associations/has_many_through_associations_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/associations/has_many_through_associations_test.rb b/activerecord/test/cases/associations/has_many_through_associations_test.rb index 3e3c7a95b7..0be050ec81 100644 --- a/activerecord/test/cases/associations/has_many_through_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_through_associations_test.rb @@ -202,7 +202,7 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase end def test_get_ids - assert_equal [posts(:welcome).id, posts(:authorless).id], people(:michael).post_ids + assert_equal [posts(:welcome).id, posts(:authorless).id].sort, people(:michael).post_ids.sort end def test_get_ids_for_loaded_associations @@ -217,7 +217,7 @@ class HasManyThroughAssociationsTest < ActiveRecord::TestCase def test_get_ids_for_unloaded_associations_does_not_load_them person = people(:michael) assert !person.posts.loaded? - assert_equal [posts(:welcome).id, posts(:authorless).id], person.post_ids + assert_equal [posts(:welcome).id, posts(:authorless).id].sort, person.post_ids.sort assert !person.posts.loaded? end end |