aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2012-09-30 12:37:59 -0700
committerSteve Klabnik <steve@steveklabnik.com>2012-09-30 12:37:59 -0700
commit7f1eef9b01ebc9b1a7bc4734c5c6dd8d35755298 (patch)
tree82d274d69b6fde8a3d95803dc20b02e853cf9f67 /activesupport
parent80f14d0fdad4ad0c13eff6f2659d6970fc598c0a (diff)
downloadrails-7f1eef9b01ebc9b1a7bc4734c5c6dd8d35755298.tar.gz
rails-7f1eef9b01ebc9b1a7bc4734c5c6dd8d35755298.tar.bz2
rails-7f1eef9b01ebc9b1a7bc4734c5c6dd8d35755298.zip
Fix other assertions that were backwards.
This time I used ack.
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/caching_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb
index a2283db899..f8e4dd6349 100644
--- a/activesupport/test/caching_test.rb
+++ b/activesupport/test/caching_test.rb
@@ -659,12 +659,12 @@ class MemoryStoreTest < ActiveSupport::TestCase
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
@@ -855,7 +855,7 @@ class CacheEntryTest < ActiveSupport::TestCase
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