diff options
author | Xavier Noria <fxn@hashref.com> | 2010-08-17 03:29:57 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-08-17 03:32:11 +0200 |
commit | fb6b80562041e8d2378cad1b51f8c234fe76fd5e (patch) | |
tree | e407af937ad119b1a5a6c977b13319f24994cde2 /activesupport/test | |
parent | d14e2987b583a3dcb6836d310f77ce367c7396f8 (diff) | |
download | rails-fb6b80562041e8d2378cad1b51f8c234fe76fd5e.tar.gz rails-fb6b80562041e8d2378cad1b51f8c234fe76fd5e.tar.bz2 rails-fb6b80562041e8d2378cad1b51f8c234fe76fd5e.zip |
code gardening: we have assert_(nil|blank|present), more concise, with better default failure messages - let's use them
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/caching_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb index b79a7bbaec..28ef695a4b 100644 --- a/activesupport/test/caching_test.rb +++ b/activesupport/test/caching_test.rb @@ -649,12 +649,12 @@ class CacheStoreLoggerTest < ActiveSupport::TestCase def test_logging @cache.fetch('foo') { 'bar' } - assert @buffer.string.present? + assert_present @buffer.string end def test_mute_logging @cache.mute { @cache.fetch('foo') { 'bar' } } - assert @buffer.string.blank? + assert_blank @buffer.string end end |