mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
compare sorted arrays in relations_test
Oracle does not guarantee that SELECT will return records ordered by primary key
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user