On Tue, Sep 30, 2008 at 9:55 AM, Luke Melia <[EMAIL PROTECTED]> 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.
There's no direct hooks into the mock framework and I don't think there should be, but you can roll your own in the supplied Before/After methods: Before do #do some magic w/ time end After do #undo some magic w/ time end Those run before and after every scenario. > > Cheers, > Luke > -- > Luke Melia > [EMAIL PROTECTED] > http://www.lukemelia.com/ > > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users