File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,6 @@ def test_local_writes_are_persistent_on_the_remote_cache
30
30
end
31
31
32
32
def test_clear_also_clears_local_cache
33
- skip "MemCached Store is failing on this test..."
34
-
35
33
key = SecureRandom . uuid
36
34
@cache . with_local_cache do
37
35
@cache . write ( key , SecureRandom . alphanumeric )
Original file line number Diff line number Diff line change @@ -79,9 +79,15 @@ def after_teardown
79
79
# Overrides test from LocalCacheBehavior in order to stub out the cache clear
80
80
# and replace it with a delete.
81
81
def test_clear_also_clears_local_cache
82
- key = "#{ @namespace } :foo"
82
+ key = SecureRandom . uuid
83
+ cache = lookup_store ( raw : true )
83
84
client . stub ( :flush_all , -> { client . delete ( key ) } ) do
84
- super
85
+ cache . with_local_cache do
86
+ cache . write ( key , SecureRandom . alphanumeric )
87
+ cache . clear
88
+ assert_nil cache . read ( key )
89
+ end
90
+ assert_nil cache . read ( key )
85
91
end
86
92
end
87
93
You can’t perform that action at this time.
0 commit comments