diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-06-07 20:56:26 -0300 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-06-07 20:06:31 -0400 |
commit | 94ed39d146e898f15317477c8ca61cbb4d3b97d0 (patch) | |
tree | 60b064b3888d411fd87aa5341ce06a08ad391893 | |
parent | 67a60ee314f53abcde78f8ecd2a1f7c9ef8264e1 (diff) | |
download | rails-94ed39d146e898f15317477c8ca61cbb4d3b97d0.tar.gz rails-94ed39d146e898f15317477c8ca61cbb4d3b97d0.tar.bz2 rails-94ed39d146e898f15317477c8ca61cbb4d3b97d0.zip |
This test shouldn't rely on the order of the data returned by select
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index 4097c5119e..43519db976 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -114,7 +114,7 @@ class RelationTest < ActiveRecord::TestCase def test_select_with_block even_ids = Developer.scoped.select {|d| d.id % 2 == 0 }.map(&:id) - assert_equal [2, 4, 6, 8, 10], even_ids + assert_equal [2, 4, 6, 8, 10], even_ids.sort end def test_finding_with_hash_conditions_on_joined_table |