提交 2d749cbe 编写于 作者: A Alberto Almagro

Prefer assert_not instead of refute [ci skip]

As mentioned in the contributing to Ruby on Rails guides,
we should prefer `assert_not` instead of `refute`. And the
best place to start giving example are our bug report templates..

See: https://github.com/rails/rails/blame/master/guides/source/contributing_to_ruby_on_rails.md#L256
上级 ef4f5ef6
......@@ -18,6 +18,6 @@
class BugTest < Minitest::Test
def test_stuff
assert "zomg".present?
refute "".present?
assert_not "".present?
end
end
......@@ -17,6 +17,6 @@
class BugTest < Minitest::Test
def test_stuff
assert "zomg".present?
refute "".present?
assert_not "".present?
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册