aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-11-13 12:42:40 -0800
committerJeremy Kemper <jeremy@bitsweat.net>2009-11-13 12:42:49 -0800
commit2841a14f4b26e093e88cdb6d84c82d120f53ca46 (patch)
treef87ddfe230e65b924f6c3b155f755a306420d8e2 /activesupport
parent9acc824d96db039486fc493c6f904035fe386967 (diff)
downloadrails-2841a14f4b26e093e88cdb6d84c82d120f53ca46.tar.gz
rails-2841a14f4b26e093e88cdb6d84c82d120f53ca46.tar.bz2
rails-2841a14f4b26e093e88cdb6d84c82d120f53ca46.zip
Ruby 1.9.2: fix broken to_ary expectation
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/caching_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb
index 6a51ce9402..00e05f76fe 100644
--- a/activesupport/test/caching_test.rb
+++ b/activesupport/test/caching_test.rb
@@ -30,7 +30,9 @@ class CacheStoreSettingTest < ActiveSupport::TestCase
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