683b1662772b2b1c708b51e0d83b3158c510ae4c
test-doubles.md
... | ... | @@ -125,6 +125,9 @@ of the delegation to the specific converter even if it's wrong; our stubbed test |
125 | 125 | what the actual class does at all: our test is completely independent. Additionally, we have moved the |
126 | 126 | key verification value closer to the assertion, which is easier to read. |
127 | 127 | |
128 | +Stubbing in MiniTest requires the the stubbed method actually exist in the instance being stubbed. Other |
|
129 | +testing frameworks are more lenient in this respect, which can result in more concise tests. |
|
130 | + |
|
128 | 131 | ### Testing messages sent to others |
129 | 132 | |
130 | 133 | When we send a message to another object that results in a side effect, we want to verify the side effect. |