[rspec-users] Cucumber - stub! or mock?

Matt Wynne matt at mattwynne.net
Tue Sep 30 11:32:29 EDT 2008


Have you thought about building a fake object instead of using  
mocking / stubbing? It might be simpler, and you can use Pat's  
ServiceLocator idea to substitute your fake for the cucumber runs.

On 30 Sep 2008, at 15:55, Luke Melia wrote:

> On Sep 15, 2008, at 4:35 PM, Pat Maddox wrote:
>
>> I don't think you're really supposed to mock or stub when using  
>> cucumber.
>
> We need to stub time in some of our scenarios, which exist to to  
> verify behavior over time. We're looking into a before/after to  
> support mocking/stubbing for this scenario.
>
> Cheers,
> Luke
> --
> Luke Melia
> luke at lukemelia.com
> http://www.lukemelia.com/
>
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users



More information about the rspec-users mailing list