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:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user