-
-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(
Ash.Test
): Updates to assert_has_error
and `refute_has_erro…
…r` to accept `:ok` tuples (#1706) * chore(`Ash.Test`): Allow `:ok` tuples to be passed to `assert_has_error` without error This case will always have a failing assertion because there are no errors at all * chore(`Ash.Test`): Allow `:ok`/`:error` tuples to be passed to `refute_has_error` without error * chore(`Ash.Test`): Add tests for changes to `assert_has_error` and `refute_has_error` * chore(`Ash.Test`): Deprecate the `error_class` argument to `Ash.Test.refute_has_error` It's confusing when combined with the required `callback` argument and the fact that this is a refutation, not an assertion - too many negatives going around
- Loading branch information
1 parent
c59eb2e
commit b468bcb
Showing
2 changed files
with
179 additions
and
19 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