Permalink
Browse files

compare sorted arrays in relations_test

Oracle does not guarantee that SELECT will return records ordered by primary key
  • Loading branch information...
1 parent c51fa6b commit acef8feafa8a44271eb28685e180f8c28b7e4a0f @rsim rsim committed Jun 4, 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 acef8fe

Please sign in to comment.