Skip to content
Browse files

do order by id when finding first fixture to ensure that it is correc…

…t one

(as otherwise was failing under JRuby and oracle_enhanced adapter)
  • Loading branch information...
1 parent f12f377 commit 9bf7b6334fae71821c2056ae2e6e8461ec3f73be @rsim rsim committed Sep 18, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/associations/has_many_associations_test.rb
View
2 activerecord/test/cases/associations/has_many_associations_test.rb
@@ -511,7 +511,7 @@ def test_deleting_before_save
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)

0 comments on commit 9bf7b63

Please sign in to comment.
Something went wrong with that request. Please try again.