aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-03-07 09:36:07 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-03-07 09:36:07 -0800
commit5968d7a65886d3450698889f685eccaf54749f43 (patch)
tree86ce7affa6185046b5df292c9931f853e820e8ac /activesupport/test
parenta032212e7c1da834ae75d85a4f2f1f943bfdc474 (diff)
downloadrails-5968d7a65886d3450698889f685eccaf54749f43.tar.gz
rails-5968d7a65886d3450698889f685eccaf54749f43.tar.bz2
rails-5968d7a65886d3450698889f685eccaf54749f43.zip
do not test explicit equality of predicate methods, they should be allowed to return truthy or falsey objects
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 579d5dad24..e5668e29d7 100644
--- a/activesupport/test/caching_test.rb
+++ b/activesupport/test/caching_test.rb
@@ -679,12 +679,12 @@ class CacheEntryTest < ActiveSupport::TestCase
def test_expired
entry = ActiveSupport::Cache::Entry.new("value")
- assert_equal false, entry.expired?
+ assert !entry.expired?, 'entry not expired'
entry = ActiveSupport::Cache::Entry.new("value", :expires_in => 60)
- assert_equal false, entry.expired?
+ assert !entry.expired?, 'entry not expired'
time = Time.now + 61
Time.stubs(:now).returns(time)
- assert_equal true, entry.expired?
+ assert entry.expired?, 'entry is expired'
end
def test_compress_values