Permalink
Browse files

Ruby 1.9.2: fix broken to_ary expectation

  • Loading branch information...
1 parent de03840 commit 3a3dfe4996bf1d0a979663f4e5eab11a26a727fc @jeremy jeremy committed Nov 13, 2009
Showing with 3 additions and 1 deletion.
  1. +3 −1 activesupport/test/caching_test.rb
@@ -35,7 +35,9 @@ def test_mem_cache_fragment_cache_store_with_given_mem_cache
def test_mem_cache_fragment_cache_store_with_given_mem_cache_like_object
MemCache.expects(:new).never
- store = ActiveSupport::Cache.lookup_store :mem_cache_store, stub("memcache", :get => true)
+ memcache = Object.new
+ def memcache.get() true end
+ store = ActiveSupport::Cache.lookup_store :mem_cache_store, memcache
assert_kind_of(ActiveSupport::Cache::MemCacheStore, store)
end

0 comments on commit 3a3dfe4

Please sign in to comment.