Skip to content

Support regex in assert_path and refute_path - #325

Open
ChrisJr404 wants to merge 1 commit into
germsvel:mainfrom
ChrisJr404:support-regex-in-assert-path
Open

Support regex in assert_path and refute_path#325
ChrisJr404 wants to merge 1 commit into
germsvel:mainfrom
ChrisJr404:support-regex-in-assert-path

Conversation

@ChrisJr404

Copy link
Copy Markdown

Closes #233. This lets you pass a regex to assert_path/refute_path for cases where you know the shape of the path but not the exact value, like a redirect to a newly created record. It reuses the existing path matching so query params still work the same way.

@germsvel

Copy link
Copy Markdown
Owner

Hey @ChrisJr404, thanks for opening this PR.

There are a ton of .hexhome files in your PR. Can you clean those up?

@ChrisJr404
ChrisJr404 force-pushed the support-regex-in-assert-path branch from 0a9fc91 to 09914b4 Compare August 27, 2026 13:50
@ChrisJr404

Copy link
Copy Markdown
Author

Good catch, sorry about that. Those were a project-local hex/mix cache that got picked up accidentally. I've removed all of the .hexhome/ and .mixhome/ files and added both to .gitignore so it won't happen again. The PR is now just the three source/test files.

@ChrisJr404
ChrisJr404 force-pushed the support-regex-in-assert-path branch from 09914b4 to 2491cb8 Compare August 30, 2026 22:43
@ChrisJr404

Copy link
Copy Markdown
Author

Cleaned up. The stray cache files are gone and I also dropped the unrelated .gitignore edit, so the branch is now scoped to just the assert_path/refute_path regex change. Thanks for flagging it.

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.

Support Regex in assert_path/2

2 participants