From 36bf5acd23f2d66dc8ca7522360d83d26c088ecb Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 18 Feb 2014 16:40:11 +0100 Subject: Use assert_nil instead as its clearer about what the return is expected to be --- activesupport/test/core_ext/object/inclusion_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3