There is probably an opportunity to remove modifiers from your statements that may change their results or overshadow what you are actually asking. In fact, it is basically a style choice.
This is a kind of motivation to have unless in the language, instead of writing this:
if !@user.valid ?
You would do:
unless @user.valid?
Suppose that if / if differences differ from each other better than assert_not , alas, that will conduct the Minitest unit tests. If you want something more natural, take a look at the Minitest or RSpec specifications.
source share