4dba6f46cfc2b54fc5b6f6f613a2862e22217590
test-doubles.md
... | ... | @@ -264,7 +264,13 @@ value and its conversion. |
264 | 264 | |
265 | 265 | To make this happen, we want to create a `Mock`. Notice that we are still using the stubbed converter. |
266 | 266 | But now we write `logger.expect` to set up our expectations for what will happen on the collaborating |
267 | -object; and then we verify it afterward. I've annotated this with the four phases. |
|
267 | +object; and then we verify it afterward. |
|
268 | + |
|
269 | +It is critical to understand that we are not mocking an object or a class; we are just verifying |
|
270 | +that the delegate is sent the `log` method with the right parameters. What this means is that we are |
|
271 | +verifying a "role" -- Just one aspect of the outgoing messages from the SUT. |
|
272 | + |
|
273 | +I've annotated this with the four phases. |
|
268 | 274 | |
269 | 275 | ```ruby |
270 | 276 | describe Converter, "delegation to logger" do |