Skip to content

Commit

Permalink
fix tests relying on implicit ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Aug 26, 2008
1 parent eae903a commit eab7611
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions activerecord/test/cases/query_cache_test.rb
Expand Up @@ -116,8 +116,9 @@ def test_cache_is_expired_by_habtm_update
def test_cache_is_expired_by_habtm_delete def test_cache_is_expired_by_habtm_delete
ActiveRecord::Base.connection.expects(:clear_query_cache).times(2) ActiveRecord::Base.connection.expects(:clear_query_cache).times(2)
ActiveRecord::Base.cache do ActiveRecord::Base.cache do
c = Category.find(:first) c = Category.find(1)
p = Post.find(:first) p = Post.find(1)
assert p.categories.any?
p.categories.delete_all p.categories.delete_all
end end
end end
Expand Down

0 comments on commit eab7611

Please sign in to comment.