-
-
Notifications
You must be signed in to change notification settings - Fork 911
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Adjust negative form of
ValidateNumericalityMatcher
(#1603)
This commit adjusts the negative form of the `ValidateNumericalityMatcher` so that is does not use the `does_not_match?` method, but actually uses the negative result of the `matches?` method. This is easy to understand and does not require any special handling for the negative form. Previously this matcher on the negative form was always returning `true`, as there were no `does_not_match?` method defined, which caused it to use the `does_not_match?` method from the `ValidationMatcher` parent class, which always returns `true`, this commit fixes that.
- Loading branch information
1 parent
2a2b062
commit d611911
Showing
4 changed files
with
51 additions
and
11 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
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