Re: [rspec-users] stubbing out helper method in helper spec

2007-09-06 Thread Ingo Weiss
Thanks David, in this case stubbing out method1 helped me a lot with focusing on what I want to test, without being distracted by having to follow down the call stack Ingo On Sep 6, 2007, at 5:40 PM, David Chelimsky wrote: > On 9/6/07, Ingo Weiss <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I am

Re: [rspec-users] stubbing out helper method in helper spec

2007-09-06 Thread David Chelimsky
On 9/6/07, Ingo Weiss <[EMAIL PROTECTED]> wrote: > Hi, > > I am stuck with a problem in my helper specs. Say I have a helper > with two methods, method1 and method2, where method2 is calling > method1 internally. How can I stub out method1 when testing method2? > I guess it boils down to how I can

[rspec-users] stubbing out helper method in helper spec

2007-09-06 Thread Ingo Weiss
Hi, I am stuck with a problem in my helper specs. Say I have a helper with two methods, method1 and method2, where method2 is calling method1 internally. How can I stub out method1 when testing method2? I guess it boils down to how I can access the helper object from within a helper spec.