Skip to content
This repository
Browse code

more about should_receive multiple times with args in README

  • Loading branch information...
commit 42faffa41b0dacfa2aac4b511fc6d574eb3131cc 1 parent d0df33c
David Chelimsky authored

Showing 1 changed file with 7 additions and 0 deletions. Show diff stats Hide diff stats

  1. 7  README.md
7  README.md
Source Rendered
@@ -190,6 +190,13 @@ double.should_receive(:other_msg).ordered
190 190
   #This will fail if the messages are received out of order
191 191
 ```
192 192
 
  193
+This can include the same message with different arguments:
  194
+
  195
+```ruby
  196
+double.should_receive(:msg).with("A", 1, 3).ordered
  197
+double.should_receive(:msg).with("B", 2, 4).ordered
  198
+```
  199
+
193 200
 ## Setting Responses
194 201
 
195 202
 Whether you are setting a message expectation or a method stub, you can

0 notes on commit 42faffa

Please sign in to comment.
Something went wrong with that request. Please try again.