-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix assert_has/refute_has title matching exactly (#65)
What changed? ============ Our `assert_has/3` and `refute_has/3` helpers with `"title"` behave differently from the rest of our assertion helpers. By default our other assertion helpers perform a match (`=~`) operation. Our "title" assertion performs an equality (`==`) operation. In addition to being different from the rest, it's annoying because we typically render the title with a `<.live_title>` tag which has newlines and spaces. We fix that in this commit and allow people to pass `exact: true` to match exactly.
- Loading branch information
Showing
2 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters