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 84e656f504..c2240d03c2 100644
--- a/activesupport/test/cache/cache_key_test.rb
+++ b/activesupport/test/cache/cache_key_test.rb
@@ -47,7 +47,7 @@ class CacheKeyTest < ActiveSupport::TestCase
end
def test_expand_cache_key_respond_to_cache_key
- key = "foo".dup
+ key = +"foo"
def key.cache_key
:foo_key
end
@@ -55,7 +55,7 @@ class CacheKeyTest < ActiveSupport::TestCase
end
def test_expand_cache_key_array_with_something_that_responds_to_cache_key
- key = "foo".dup
+ key = +"foo"
def key.cache_key
:foo_key
end