1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

This commit is contained in:
David Heinemeier Hansson 2014-02-18 16:40:11 +01:00
parent 8c4ca897a9
commit 36bf5acd23

View file

@ -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