Use assert_nil instead as its clearer about what the return is expected to be

上级 8c4ca897
......@@ -50,6 +50,6 @@ def test_no_method_catching
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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册