Closed docteurklein closed 8 years ago
EDIT: I just noticed you recently (january :)) moved TestRobot and RobotCase in lib, which makes them available when downloaded from hex. It resolves the module loading problem (I updated the issue accordingly), but i still get the same error concerning the empty mailbox.
We sorted this out in Slack but I thought I would add the comments here for historical reasons. You're missing the responders:
config in your @tag
. It should read something like: @tag start_robot: true, name: "edgar", responders: [{YOUR_MODULE_NAME, []}]
.
It might be worthwhile to add some documentation about this in the README or in module docs to help others avoid this problem in the future. We also discussed defaulting to the mix config for responders but I'm not sure what the ramifications of that might be. @scrogson would know better then me.
I'm currently having problems to create tests for my user-land responders. I tried to copy
Hedwig.Responders.HelpTest
:working responder example:
test
result
Hope my question is not too dumb :) Cheers o/