Skip to content

Blunt.Behaviour shows missing callbacks in error message#19

Open
thetamind wants to merge 1 commit intoblunt-elixir:reorgfrom
thetamind:behaviour-show-missing-callbacks
Open

Blunt.Behaviour shows missing callbacks in error message#19
thetamind wants to merge 1 commit intoblunt-elixir:reorgfrom
thetamind:behaviour-show-missing-callbacks

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