Skip to content

Commit

Permalink
compare sorted arrays in relations_test
Browse files Browse the repository at this point in the history
Oracle does not guarantee that SELECT will return records ordered by primary key
  • Loading branch information
rsim committed Jun 4, 2010
1 parent c51fa6b commit acef8fe
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 acef8fe

Please sign in to comment.