0
@@ -18,6 +18,19 @@ class CacheStoreSettingTest < Test::Unit::TestCase
0
assert_kind_of(ActiveSupport::Cache::MemCacheStore, store)
0
assert_equal %w(localhost), store.addresses
0
+ def test_mem_cache_fragment_cache_store_with_multiple_servers
0
+ store = ActiveSupport::Cache.lookup_store :mem_cache_store, "localhost", '192.168.1.1'
0
+ assert_kind_of(ActiveSupport::Cache::MemCacheStore, store)
0
+ assert_equal %w(localhost 192.168.1.1), store.addresses
0
+ def test_mem_cache_fragment_cache_store_with_options
0
+ store = ActiveSupport::Cache.lookup_store :mem_cache_store, "localhost", '192.168.1.1', :namespace => 'foo'
0
+ assert_kind_of(ActiveSupport::Cache::MemCacheStore, store)
0
+ assert_equal %w(localhost 192.168.1.1), store.addresses
0
+ assert_equal 'foo', store.instance_variable_get('@data').instance_variable_get('@namespace')
0
def test_object_assigned_fragment_cache_store
0
store = ActiveSupport::Cache.lookup_store ActiveSupport::Cache::FileStore.new("/path/to/cache/directory")
Comments
No one has commented yet.