Skip to content

Adds assertRouteUsesMiddleware assertion #23

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

Merged
merged 3 commits into from
Jul 25, 2020

Conversation

niveshsaharan
Copy link
Contributor

Added a handy method to check if a route uses given set of middlewares and option to check if it uses only the given set of middlewares.

I needed this to use in one of my application so I thought I'd create a pull request and maybe other people can find it useful.

@jasonmccreary jasonmccreary merged commit 90a1e94 into jasonmccreary:master Jul 25, 2020
@jasonmccreary
Copy link
Owner

@niveshsaharan thanks. Just a heads up, it appears your local Git author information doesn't match GitHub. You will want to adjust this so you get "credit" in the commit history.

@niveshsaharan
Copy link
Contributor Author

niveshsaharan commented Jul 25, 2020 via email

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.

2 participants