mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Ruby 1.9.2: fix broken to_ary expectation
This commit is contained in:
parent
9acc824d96
commit
2841a14f4b
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue