loading...

re: Clean and reusable test helpers with Elixir macros VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thank you for introducing to this nice pattern. By reading and trying the code I think that UserTest, in helper functions pattern, is missing an im...
 

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.

code of conduct - report abuse