mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
This test shouldn't rely on the order of the data returned by select
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
This commit is contained in:
parent
67a60ee314
commit
94ed39d146
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue