psyho / bogus

Fake library for Ruby
Other
359 stars 14 forks source link

Spies on methods with arguments having default values #13

Closed mostlyobvious closed 11 years ago

mostlyobvious commented 11 years ago

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

mostlyobvious commented 11 years ago

And I've just found out this the case only for Ruby 2.0.

mostlyobvious commented 11 years ago

Nevermind, it's the problem on 1.9.3 as well and obviously a duplicate of #7

wrozka commented 11 years ago

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.

mostlyobvious commented 11 years ago

Thanks, works as advertised!