diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2014-02-18 16:40:11 +0100 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2014-02-18 16:40:26 +0100 |
commit | 36bf5acd23f2d66dc8ca7522360d83d26c088ecb (patch) | |
tree | 26bd4e12681ed569df704558709a8cef2dae3621 | |
parent | 8c4ca897a9ccbd23f7790fb4ca8f233ac69de189 (diff) | |
download | rails-36bf5acd23f2d66dc8ca7522360d83d26c088ecb.tar.gz rails-36bf5acd23f2d66dc8ca7522360d83d26c088ecb.tar.bz2 rails-36bf5acd23f2d66dc8ca7522360d83d26c088ecb.zip |
Use assert_nil instead as its clearer about what the return is expected to be
-rw-r--r-- | activesupport/test/core_ext/object/inclusion_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/object/inclusion_test.rb b/activesupport/test/core_ext/object/inclusion_test.rb index 33f40b60b1..c5e2cc693a 100644 --- a/activesupport/test/core_ext/object/inclusion_test.rb +++ b/activesupport/test/core_ext/object/inclusion_test.rb @@ -50,6 +50,6 @@ class InTest < ActiveSupport::TestCase def test_present_in assert_equal "stuff", "stuff".present_in(%w( lots of stuff )) - assert_not "stuff".present_in(%w( lots of crap )) + assert_nil "stuff".present_in(%w( lots of crap )) end end |