-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Warning.warn override in MSpec and --warnings option
* Overriding Warning.warn cause several problems, including it's much harder and confusing to test Warning.warn in specs. Notably caused by Warning.warn in 2.7 not supporting the category: keyword argument. * specs fail when $VERBOSE is true globally, so there is no real value to filter those $VERBOSE=true-only warnings. * mspec requires ruby 2.7+, which has Warning.warn, so `$VERBOSE = nil unless ENV['OUTPUT_WARNINGS']` was dead code, and so the --warnings option had no effect.
- Loading branch information
Showing
5 changed files
with
2 additions
and
79 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
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