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

Add PhoenixTest.assert_path and refute_path #60

Merged
merged 1 commit into from
Apr 10, 2024
Merged

Add PhoenixTest.assert_path and refute_path #60

merged 1 commit into from
Apr 10, 2024

Conversation

germsvel
Copy link
Owner

Resolves #32

What changed?

We add two new assertion helpers to assert on the current path: assert_path and refute_path. Both helpers have a 2 and 3 arity versions. The 3-arity version takes a query_params key to assert on the query params.

We do not handle other optional arguments (such as host or scheme), though we could see this being extensible in the future with those options.

What changed?
============

We add two new assertion helpers to assert on the current path:
`assert_path` and `refute_path`. Both helpers have a 2 and 3 arity
versions. The 3-arity version takes a `query_params` key to assert on
the query params.

We do not handle other optional arguments (such as `host` or `scheme`),
though we could see this being extensible in the future with those
options.
@germsvel germsvel merged commit f2ab02c into main Apr 10, 2024
2 checks passed
@germsvel germsvel deleted the assert-path branch April 10, 2024 23:52
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.

Assert on redirect?
1 participant