Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ruby 1.9.2: fix broken to_ary expectation

  • Loading branch information...
commit 3a3dfe4996bf1d0a979663f4e5eab11a26a727fc 1 parent de03840
@jeremy jeremy authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 activesupport/test/caching_test.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.