Skip to content

Commit

Permalink
Fix other assertions that were backwards.
Browse files Browse the repository at this point in the history
This time I used ack.
  • Loading branch information
steveklabnik committed Sep 30, 2012
1 parent 80f14d0 commit 7f1eef9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions activesupport/test/caching_test.rb
Expand Up @@ -659,12 +659,12 @@ def test_prune_size_on_write
assert @cache.exist?(9)
assert @cache.exist?(8)
assert @cache.exist?(7)
assert "no entry", !@cache.exist?(6)
assert "no entry", !@cache.exist?(5)
assert !@cache.exist?(6), "no entry"
assert !@cache.exist?(5), "no entry"
assert @cache.exist?(4)
assert "no entry", !@cache.exist?(3)
assert !@cache.exist?(3), "no entry"
assert @cache.exist?(2)
assert "no entry", !@cache.exist?(1)
assert !@cache.exist?(1), "no entry"
end

def test_pruning_is_capped_at_a_max_time
Expand Down Expand Up @@ -855,7 +855,7 @@ def test_compress_values
value = "value" * 100
entry = ActiveSupport::Cache::Entry.new(value, :compress => true, :compress_threshold => 1)
assert_equal value, entry.value
assert "value is compressed", (value.bytesize > entry.size)
assert (value.bytesize > entry.size), "value is compressed"
end

def test_non_compress_values
Expand Down

0 comments on commit 7f1eef9

Please sign in to comment.