aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/cache
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-01-16 09:20:47 -0500
committerGeorge Claghorn <george@basecamp.com>2018-01-16 09:20:47 -0500
commit4c0cb1c2c9269c74588da9f114f52ea3707ae8fb (patch)
tree41f47db13ca943c96c8e532f0e87eadc548fcc5d /activesupport/test/cache
parentc2ba530c43244b5b60fd629f61cd8b44c43ecda9 (diff)
downloadrails-4c0cb1c2c9269c74588da9f114f52ea3707ae8fb.tar.gz
rails-4c0cb1c2c9269c74588da9f114f52ea3707ae8fb.tar.bz2
rails-4c0cb1c2c9269c74588da9f114f52ea3707ae8fb.zip
Fix constant reference
Update the long key handling test so it triggers truncation in the Redis cache store.
Diffstat (limited to 'activesupport/test/cache')
-rw-r--r--activesupport/test/cache/behaviors/cache_store_behavior.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/test/cache/behaviors/cache_store_behavior.rb b/activesupport/test/cache/behaviors/cache_store_behavior.rb
index bdc689b8b4..ac37ab6e61 100644
--- a/activesupport/test/cache/behaviors/cache_store_behavior.rb
+++ b/activesupport/test/cache/behaviors/cache_store_behavior.rb
@@ -309,8 +309,7 @@ module CacheStoreBehavior
end
def test_really_long_keys
- key = "".dup
- 900.times { key << "x" }
+ key = "x" * 2048
assert @cache.write(key, "bar")
assert_equal "bar", @cache.read(key)
assert_equal "bar", @cache.fetch(key)