Closed mostlyobvious closed 11 years ago
And I've just found out this the case only for Ruby 2.0.
Nevermind, it's the problem on 1.9.3 as well and obviously a duplicate of #7
We are still working on 2.0 support, but the default arguments bug on 1.9.3 was fixed, just upgrade bogus to 0.0.4.
Thanks, works as advertised!
When spying on method with default arguments it expects
{}
for every default argument not passed. See example for details: https://gist.github.com/pawelpacana/5664592