xaviershay/rspec-fire — pull request #8 by myronmarston (2012-03-22 06:27:38+00:00)
Title: Handle default args and splat args properly.

Unfortunately, on 1.8, there's no way to tell the difference between default args and splat args, so we can't fully support both. I've opted to be more liberal and treat it as a possible splat arg. This allows stubbing #with(1, 2) for a method like m(a=5), but I figure that's better than not allowing stubbing #with(1, 2) for a method like m(*a).

On 1.9, it gives us the means of telling the difference between defaults and splats, so we handle it correctly.