Extend protect/2
to accept a list of behviour modules
#93
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
My team loves Hammox since it was recommended to us by Jose - and we really
appreciate all of the work you have put into it!
We often write modules that implement multiple behaviours and have gotten into
the habit of doing something similar to this in many of our tests
This PR extends the api to
Hammox.protect
to be able to take in animplementation module and a list of behaviours so that we could replace the
above with
Please let me know if you have ideas of alternative implementations for this,
or if this does not fit with your design, feel free to disregard!
Once again - thanks for all of your work on this library - it has been very
valuable to our application!