From 42faffa41b0dacfa2aac4b511fc6d574eb3131cc Mon Sep 17 00:00:00 2001 From: David Chelimsky Date: Sat, 23 Feb 2013 11:13:17 -0600 Subject: [PATCH] more about should_receive multiple times with args in README --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 55c988c2f..2e5013624 100644 --- a/README.md +++ b/README.md @@ -190,6 +190,13 @@ double.should_receive(:other_msg).ordered #This will fail if the messages are received out of order ``` +This can include the same message with different arguments: + +```ruby +double.should_receive(:msg).with("A", 1, 3).ordered +double.should_receive(:msg).with("B", 2, 4).ordered +``` + ## Setting Responses Whether you are setting a message expectation or a method stub, you can