DEV Community

Discussion on: Clean and reusable test helpers with Elixir macros

Collapse
 
unnawut profile image
Unnawut Leepaisalsuwanna

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.