提交 0c7bbc72 编写于 作者: J Jeremy Kemper

fix tests relying on implicit ordering

上级 b319e69e
......@@ -116,8 +116,9 @@ def test_cache_is_expired_by_habtm_update
def test_cache_is_expired_by_habtm_delete
ActiveRecord::Base.connection.expects(:clear_query_cache).times(2)
ActiveRecord::Base.cache do
c = Category.find(:first)
p = Post.find(:first)
c = Category.find(1)
p = Post.find(1)
assert p.categories.any?
p.categories.delete_all
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册