Skip to content

Commit

Permalink
This test shouldn't rely on the order of the data returned by select
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
  • Loading branch information
spastorino authored and jeremy committed Jun 8, 2010
1 parent 67a60ee commit 94ed39d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/test/cases/relations_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit 94ed39d

Please sign in to comment.