diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-04-12 14:03:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-12 14:03:40 -0400 |
commit | b7760eb75a9dd002260a361119aea0b255e1f573 (patch) | |
tree | 2179c59ba127bf4f22d39f450f3dbdd0816609ed /activesupport/test/cache/cache_entry_test.rb | |
parent | 5b7de1b70156ed0861e494ab9900c6b87c206a67 (diff) | |
parent | 66df366268c4e5b17c9235b5a0c3aabcbd578e01 (diff) | |
download | rails-b7760eb75a9dd002260a361119aea0b255e1f573.tar.gz rails-b7760eb75a9dd002260a361119aea0b255e1f573.tar.bz2 rails-b7760eb75a9dd002260a361119aea0b255e1f573.zip |
Merge pull request #32539 from chancancode/anticompress
Fix ActiveSupport::Cache compression
Diffstat (limited to 'activesupport/test/cache/cache_entry_test.rb')
-rw-r--r-- | activesupport/test/cache/cache_entry_test.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/activesupport/test/cache/cache_entry_test.rb b/activesupport/test/cache/cache_entry_test.rb index 80ff7ad564..d7baaa5c72 100644 --- a/activesupport/test/cache/cache_entry_test.rb +++ b/activesupport/test/cache/cache_entry_test.rb @@ -13,25 +13,4 @@ class CacheEntryTest < ActiveSupport::TestCase assert entry.expired?, "entry is expired" end end - - def test_compressed_values - value = "value" * 100 - entry = ActiveSupport::Cache::Entry.new(value, compress: true, compress_threshold: 1) - assert_equal value, entry.value - assert(value.bytesize > entry.size, "value is compressed") - end - - def test_compressed_by_default - value = "value" * 100 - entry = ActiveSupport::Cache::Entry.new(value, compress_threshold: 1) - assert_equal value, entry.value - assert(value.bytesize > entry.size, "value is compressed") - end - - def test_uncompressed_values - value = "value" * 100 - entry = ActiveSupport::Cache::Entry.new(value, compress: false) - assert_equal value, entry.value - assert_equal value.bytesize, entry.size - end end |