diff options
author | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2010-06-04 22:58:55 +0300 |
---|---|---|
committer | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2010-06-04 22:58:55 +0300 |
commit | acef8feafa8a44271eb28685e180f8c28b7e4a0f (patch) | |
tree | 83cee31ceeae6b78ed3df4b267ca8d9b39290cbb /activerecord/test | |
parent | c51fa6bdfc202f78907a7d1cb6bce7b0e2562913 (diff) | |
download | rails-acef8feafa8a44271eb28685e180f8c28b7e4a0f.tar.gz rails-acef8feafa8a44271eb28685e180f8c28b7e4a0f.tar.bz2 rails-acef8feafa8a44271eb28685e180f8c28b7e4a0f.zip |
compare sorted arrays in relations_test
Oracle does not guarantee that SELECT will return records ordered by primary key
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index 4097c5119e..43519db976 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -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 |