Permalink
Browse files

fix tests relying on implicit ordering

  • Loading branch information...
1 parent b319e69 commit 0c7bbc72fc043ad5debbff34da81f3d68f516d3f @jeremy jeremy committed Aug 26, 2008
Showing with 3 additions and 2 deletions.
  1. +3 −2 activerecord/test/cases/query_cache_test.rb
@@ -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

0 comments on commit 0c7bbc7

Please sign in to comment.