Just added a new feature to fakes-rspec to handle a scenario I ran into. The following test will hopefully explain it:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
The following line:
I am testing to see whether the run method (which was never set up to get explicitly called), was actually called 3 different times, and am also verifying that each time it was called it was called with a specific set of arguments.
In the test above I am verifying that for each “source”, a call was made to do a recursive, forced copy, to the “target” location.
Not needing to specify the call while also being able to verify each of the argument sets on each of the 3 invocations of the same method is handy, and introduced solely so I could support this feature that I was working on.