-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reconfigure
RSpec/PredicateMatcher
for better expectation failure m…
…essages Changed expectations would previously output messages like this: ``` Failure/Error: expect(options_keys.include?(:aautocorrect)).to be(true) expected true got false ``` The new expectations print the actual vs expected value: ``` Failure/Error: expect(options_keys).to include(:aautocorrect) expected [:autocorrect_all, :autocorrect] to include :aautocorrect Diff: @@ -1 +1 @@ -[:aautocorrect] +[:autocorrect_all, :autocorrect] ``` The same improvement also applies to something like `expect($stderr.string.include?("whatever)`.to be(true)` or `expect(foo.nil?).to be(true)` (and probably more)
- Loading branch information
Showing
51 changed files
with
476 additions
and
498 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
Oops, something went wrong.