@@ -28,7 +28,7 @@ def test_file_store_requires_a_path
28
28
end
29
29
30
30
def test_mem_cache_fragment_cache_store
31
- assert_called_with ( Dalli ::Client , :new , [ %w[ localhost ] , { } ] ) do
31
+ assert_called_with ( Dalli ::Client , :new , [ %w[ localhost ] , { compress : false } ] ) do
32
32
store = ActiveSupport ::Cache . lookup_store :mem_cache_store , "localhost"
33
33
assert_kind_of ( ActiveSupport ::Cache ::MemCacheStore , store )
34
34
end
@@ -52,14 +52,14 @@ def test_mem_cache_fragment_cache_store_with_not_dalli_client
52
52
end
53
53
54
54
def test_mem_cache_fragment_cache_store_with_multiple_servers
55
- assert_called_with ( Dalli ::Client , :new , [ %w[ localhost 192.168.1.1 ] , { } ] ) do
55
+ assert_called_with ( Dalli ::Client , :new , [ %w[ localhost 192.168.1.1 ] , { compress : false } ] ) do
56
56
store = ActiveSupport ::Cache . lookup_store :mem_cache_store , "localhost" , "192.168.1.1"
57
57
assert_kind_of ( ActiveSupport ::Cache ::MemCacheStore , store )
58
58
end
59
59
end
60
60
61
61
def test_mem_cache_fragment_cache_store_with_options
62
- assert_called_with ( Dalli ::Client , :new , [ %w[ localhost 192.168.1.1 ] , { timeout : 10 } ] ) do
62
+ assert_called_with ( Dalli ::Client , :new , [ %w[ localhost 192.168.1.1 ] , { timeout : 10 , compress : false } ] ) do
63
63
store = ActiveSupport ::Cache . lookup_store :mem_cache_store , "localhost" , "192.168.1.1" , namespace : "foo" , timeout : 10
64
64
assert_kind_of ( ActiveSupport ::Cache ::MemCacheStore , store )
65
65
assert_equal "foo" , store . options [ :namespace ]
0 commit comments