提交 0e825917 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #25823 from mechanicles/missing-memory-store-tests

Add missing tests for memory store of cache.
......@@ -140,6 +140,16 @@ def with_env(kv)
end
class CacheStoreSettingTest < ActiveSupport::TestCase
def test_memory_store_gets_created_if_no_arguments_passed_to_lookup_store_method
store = ActiveSupport::Cache.lookup_store
assert_kind_of(ActiveSupport::Cache::MemoryStore, store)
end
def test_memory_store
store = ActiveSupport::Cache.lookup_store :memory_store
assert_kind_of(ActiveSupport::Cache::MemoryStore, store)
end
def test_file_fragment_cache_store
store = ActiveSupport::Cache.lookup_store :file_store, "/path/to/cache/directory"
assert_kind_of(ActiveSupport::Cache::FileStore, store)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册