Skip to content

Commit

Permalink
more about should_receive multiple times with args in README
Browse files Browse the repository at this point in the history
  • Loading branch information
dchelimsky committed Feb 23, 2013
1 parent d0df33c commit 42faffa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -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
Expand Down

0 comments on commit 42faffa

Please sign in to comment.