On Fri, Mar 19, 2010 at 1:39 PM, David Chelimsky wrote:
> On Mar 19, 2010, at 1:27 PM, Nick Hoffman wrote:
>
>> Pat Maddox wrote:
>>> I've never heard of CurbFu, but according to
>>> http://github.com/gdi/curb-fu/blob/master/lib/curb-fu.rb#L43 it defines
>>> a stub method already. So you're hitti
On Mar 19, 2010, at 1:27 PM, Nick Hoffman wrote:
> Pat Maddox wrote:
>> I've never heard of CurbFu, but according to
>> http://github.com/gdi/curb-fu/blob/master/lib/curb-fu.rb#L43 it defines
>> a stub method already. So you're hitting that one, which expects two
>> arguments. stub! goes to R
Pat Maddox wrote:
> I've never heard of CurbFu, but according to
> http://github.com/gdi/curb-fu/blob/master/lib/curb-fu.rb#L43 it defines
> a stub method already. So you're hitting that one, which expects two
> arguments. stub! goes to RSpec's mocking framework.
>
> Pat
Good catch! Thanks,
I've never heard of CurbFu, but according to
http://github.com/gdi/curb-fu/blob/master/lib/curb-fu.rb#L43 it defines a stub
method already. So you're hitting that one, which expects two arguments.
stub! goes to RSpec's mocking framework.
Pat
On Mar 19, 2010, at 10:00 AM, Nick Hoffman wrote
RSpec's changelog says that in version 1.2.5:
"also alias_method :stub, :stub!, so you can stub with less bang"
which I've been taking advantage of a lot.
However, I just ran into a situation where using #stub caused an error
to occur, and changing to #stub! caused the error the disappear.
Any