Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blunt.Behaviour shows missing callbacks in error message #19

Open
wants to merge 1 commit into
base: reorg
Choose a base branch
from

Conversation

thetamind
Copy link

This improves Blunt.Behaviour.validate/2 to include why the module failed the behaviour check by listing the expected and actual callbacks in the error message.

** (Blunt.DispatchStrategy.PipelineResolver.Error) Blunt.CustomDispatchStrategyTest.CreatePersonHandler is not a valid Blunt.CustomDispatchStrategy.CustomCommandHandler
     Expected: [handle_dispatch: 2]
     Got: [before_dispatch: 2, handle_authorize: 3]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant