-
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.
Having separated `Query.find` from the `find!` (raising) version, we can now use that in our Assertions to provide better error messages. This commit cleans up our `assert_has` and `refute_has` logic. It also reveals that we're handling `Query.find/3` (when we provide text) slightly differently than `Query.find/2`. The return values are different when multiple records are found. We hope to improve that in a future commit and make it consistent. Testing note ------------ We also fully specify the error messages in assertion tests. Since these are really important, we want to make sure that the errors not only match with a regex, but that they're exactly as we expect them.
- Loading branch information
Showing
3 changed files
with
85 additions
and
51 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
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