diff options
author | Santosh Wadghule <santosh.wadghule@gmail.com> | 2016-07-14 13:38:07 +0530 |
---|---|---|
committer | Santosh Wadghule <santosh.wadghule@gmail.com> | 2016-07-17 19:05:52 +0530 |
commit | 6b0792266b025e57f666b01cc206e78f31c01df4 (patch) | |
tree | 7d205947fe9d817d04299d0c48af622b4869c883 /activesupport | |
parent | 5494af0c0f087a959c7f50e6689ff540cedef130 (diff) | |
download | rails-6b0792266b025e57f666b01cc206e78f31c01df4.tar.gz rails-6b0792266b025e57f666b01cc206e78f31c01df4.tar.bz2 rails-6b0792266b025e57f666b01cc206e78f31c01df4.zip |
Add missing tests for memory store of cache.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/caching_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb index 8002c14539..60119ad95e 100644 --- a/activesupport/test/caching_test.rb +++ b/activesupport/test/caching_test.rb @@ -128,6 +128,16 @@ class CacheKeyTest < ActiveSupport::TestCase 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) |