aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2011-11-21 14:01:53 -0800
committerXavier Noria <fxn@hashref.com>2011-11-21 14:01:53 -0800
commitf3554777b2433d9de6b17c277fde071592d6a10d (patch)
tree5c2055387b3e6d2c39cd35bdae1d1506cd2bd9c2 /activesupport/test
parent91678a5b29bca29aae4a987615f2503067032802 (diff)
downloadrails-f3554777b2433d9de6b17c277fde071592d6a10d.tar.gz
rails-f3554777b2433d9de6b17c277fde071592d6a10d.tar.bz2
rails-f3554777b2433d9de6b17c277fde071592d6a10d.zip
cache entry: options[:compressed] is a regular flag, no need for !!
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/caching_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb
index cb5362525f..29bc4d8ec6 100644
--- a/activesupport/test/caching_test.rb
+++ b/activesupport/test/caching_test.rb
@@ -723,7 +723,7 @@ class CacheEntryTest < ActiveSupport::TestCase
entry = ActiveSupport::Cache::Entry.create("raw", time, :compress => false, :expires_in => 300)
assert_equal "raw", entry.raw_value
assert_equal time.to_f, entry.created_at
- assert_equal false, entry.compressed?
+ assert !entry.compressed?
assert_equal 300, entry.expires_in
end
@@ -740,7 +740,7 @@ class CacheEntryTest < ActiveSupport::TestCase
def test_compress_values
entry = ActiveSupport::Cache::Entry.new("value", :compress => true, :compress_threshold => 1)
assert_equal "value", entry.value
- assert_equal true, entry.compressed?
+ assert entry.compressed?
assert_equal "value", Marshal.load(Zlib::Inflate.inflate(entry.raw_value))
end
@@ -748,6 +748,6 @@ class CacheEntryTest < ActiveSupport::TestCase
entry = ActiveSupport::Cache::Entry.new("value")
assert_equal "value", entry.value
assert_equal "value", Marshal.load(entry.raw_value)
- assert_equal false, entry.compressed?
+ assert !entry.compressed?
end
end