diff options
author | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2009-09-18 18:56:55 +0300 |
---|---|---|
committer | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2010-06-04 22:44:02 +0300 |
commit | 9bf7b6334fae71821c2056ae2e6e8461ec3f73be (patch) | |
tree | a92b5f1fdf64e51630a720198ceedd2eb687742d /activerecord | |
parent | f12f3776806d5c6f003533b5bddb96070f0f720d (diff) | |
download | rails-9bf7b6334fae71821c2056ae2e6e8461ec3f73be.tar.gz rails-9bf7b6334fae71821c2056ae2e6e8461ec3f73be.tar.bz2 rails-9bf7b6334fae71821c2056ae2e6e8461ec3f73be.zip |
do order by id when finding first fixture to ensure that it is correct one
(as otherwise was failing under JRuby and oracle_enhanced adapter)
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/associations/has_many_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_many_associations_test.rb b/activerecord/test/cases/associations/has_many_associations_test.rb index 8e5bc56008..45c7498013 100644 --- a/activerecord/test/cases/associations/has_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_many_associations_test.rb @@ -511,7 +511,7 @@ class HasManyAssociationsTest < ActiveRecord::TestCase end def test_deleting_updates_counter_cache - topic = Topic.first + topic = Topic.first(:order => "id ASC") assert_equal topic.replies.to_a.size, topic.replies_count topic.replies.delete(topic.replies.first) |