-
-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support multiple methods in responds_with matcher
This provides a terser syntax for matching an object which responds in a certain way, e.g. object = mock() object.expects(:method_1).with(responds_with(:upcase => "FOO", :reverse => "oof")) object.method_1("foo") # no error raised, because "foo".upcase == "FOO" and "foo".reverse == "oof" Addresses #578.
- Loading branch information
1 parent
da67bb0
commit f086b7e
Showing
2 changed files
with
42 additions
and
5 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