Updated the missing import. Thanks!
assert_not_blank/2 is a great idea since its error message can be customized to fit the assertion. assert not_blank(schema, field) on the otherhand would produce an unhelpful "Expected truthy, got false" error message.
assert not_blank(schema, field)
"Expected truthy, got false"
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.