We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e754787 + 10e3611 commit d9edce6Copy full SHA for d9edce6
activesupport/test/cache/stores/mem_cache_store_test.rb
@@ -85,14 +85,17 @@ def after_teardown
85
def test_clear_also_clears_local_cache
86
key = SecureRandom.uuid
87
cache = lookup_store(raw: true)
88
- client.stub(:flush_all, -> { client.delete(key) }) do
+ stub_called = false
89
+
90
+ client(cache).stub(:flush_all, -> { stub_called = true; client.delete("#{@namespace}:#{key}") }) do
91
cache.with_local_cache do
92
cache.write(key, SecureRandom.alphanumeric)
93
cache.clear
94
assert_nil cache.read(key)
95
end
96
97
98
+ assert stub_called
99
100
101
def test_raw_values
0 commit comments