aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/object/inclusion_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2014-02-18 16:40:11 +0100
committerDavid Heinemeier Hansson <david@loudthinking.com>2014-02-18 16:40:26 +0100
commit36bf5acd23f2d66dc8ca7522360d83d26c088ecb (patch)
tree26bd4e12681ed569df704558709a8cef2dae3621 /activesupport/test/core_ext/object/inclusion_test.rb
parent8c4ca897a9ccbd23f7790fb4ca8f233ac69de189 (diff)
downloadrails-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
Diffstat (limited to 'activesupport/test/core_ext/object/inclusion_test.rb')
-rw-r--r--activesupport/test/core_ext/object/inclusion_test.rb2
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