-
Notifications
You must be signed in to change notification settings - Fork 586
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
Add Plug.Router tests #1234
Add Plug.Router tests #1234
Conversation
Thank you. However, I think matching on the error message would be more useful here. The exception class is not that interesting and we may be raising an unrelated error. |
Thanks very much for the feedback - does the latest change work? |
2ae682d
to
5efdba0
Compare
Updated PR description and squashed commits into one commit. |
5efdba0
to
ea56232
Compare
Updated test names. |
Hrm, i thought we could use |
* Add test that asserts an error is raised with the expected message when Plug.Router.match/3 is not given :to or :do option. * Add test that asserts an error is raised with the expected message when no routes are defined in a Plug module.
ea56232
to
eeb5e52
Compare
No problem, thanks very much for the clarification. |
💚 💙 💜 💛 ❤️ |
Add test that asserts an error is raised with the expected message when Plug.Router.match/3 is not given :to or :do option.
Add test that asserts an error is raised with the expected message when no routes are defined in a Plug module.