Permalink
Browse files

This test shouldn't rely on the order of the data returned by select

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information...
1 parent 67a60ee commit 94ed39d146e898f15317477c8ca61cbb4d3b97d0 @spastorino spastorino committed with jeremy Jun 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/relations_test.rb
@@ -114,7 +114,7 @@ def test_finding_with_group
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

0 comments on commit 94ed39d

Please sign in to comment.