Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[expectations] yield_control hardening (rspec/rspec-expectations#1167)
Prevent invalid argument given to yield_control.exactly / at_least / at_most Previously `exactly(:trice)` would always provide a failure with message 'expected given block to yield control', even if control was yielded. `at_least(:trice)` yields a cryptic error 'ArgumentError: comparison of Integer with nil failedinstead of an error as it should'. --- This commit was imported from rspec/rspec-expectations@96bad96.
- Loading branch information
Showing
2 changed files
with
42 additions
and
17 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