Skip to content
Browse files

fix tests relying on implicit ordering

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

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