aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/cache/cache_key_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/test/cache/cache_key_test.rb')
-rw-r--r--activesupport/test/cache/cache_key_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/cache/cache_key_test.rb b/activesupport/test/cache/cache_key_test.rb
index 149d0f66ee..ea39d7a299 100644
--- a/activesupport/test/cache/cache_key_test.rb
+++ b/activesupport/test/cache/cache_key_test.rb
@@ -45,7 +45,7 @@ class CacheKeyTest < ActiveSupport::TestCase
end
def test_expand_cache_key_respond_to_cache_key
- key = "foo"
+ key = "foo".dup
def key.cache_key
:foo_key
end
@@ -53,7 +53,7 @@ class CacheKeyTest < ActiveSupport::TestCase
end
def test_expand_cache_key_array_with_something_that_responds_to_cache_key
- key = "foo"
+ key = "foo".dup
def key.cache_key
:foo_key
end