Skip to content

Commit fa7fb00

Browse files
authored
Merge pull request rails#46187 from Shopify/memcached-namespace-encoding-keys
Namespace keys in EncodedKeyCacheBehavior test
2 parents e150024 + 05bcb15 commit fa7fb00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activesupport/test/cache/behaviors/encoded_key_cache_behavior.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
module EncodedKeyCacheBehavior
77
Encoding.list.each do |encoding|
88
define_method "test_#{encoding.name.underscore}_encoded_values" do
9-
key = (+"foo").force_encoding(encoding)
9+
key = (+"foo_#{encoding.name.underscore}").force_encoding(encoding)
1010
assert @cache.write(key, "1", raw: true)
1111
assert_equal "1", @cache.read(key, raw: true)
1212
assert_equal "1", @cache.fetch(key, raw: true)

0 commit comments

Comments
 (0)