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)
This commit is contained in:
Raimonds Simanovskis 2009-09-18 18:56:55 +03:00
parent f12f377680
commit 9bf7b6334f

@ -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)