-
-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the failure messages for the have/has predicate matcher.
- For a case like `foo.should have_some_stuff`, "expected #has_some_stuff? to..." is better than "expected #has_some_stuff?(nil) to...". The nil is confusing since you didn't pass any arguments. - For a case like `foo.should have_each_of(:a, 7, "bar")`, "expected #has_each_of?(:a, 7, "bar")" is better than "expected #has_each_of?(:a)". It's best to include all the arguments rather than just the first one.
- Loading branch information
1 parent
27c1205
commit e92aad9
Showing
4 changed files
with
46 additions
and
8 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