-
-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix warnings triggered by raise_error matcher
Fix warnings that are triggered when the `raise_error` matcher is used without providing a specific error class or message. The warning quoted: >WARNING: Using the `raise_error` matcher without providing a specific error or >message risks false positives, since `raise_error` will match when Ruby raises >a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the >expectation to pass without even executing the method you are intending to >call. Instead consider providing a specific error class or message. This >message can be supressed by setting: >`RSpec::Expectations.configuration.warn_about_potential_false_positives = >false`.
- Loading branch information
Showing
4 changed files
with
7 additions
and
7 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