> On Sun, May 3, 2009 at 10:42 PM, Mike Doel <m...@mikedoel.com> wrote: > >> >> I also make use of FakeWeb in a couple places to do a similar thing for >> the scraping of sites. > > > FWIW, so does the maintainer of FakeWeb, Chris Kampmeier (with whom I > work). > > Stubbing should be avoided when using Cucumber, if only because that > reduces its effectiveness as an integration testing tool. That doesn't mean > stubbing is prohibited. You don't really need to test Gooble. And Cucumber's > specing and communication capabilities don't suffer from stubbing. >
One thing to be aware of when stubbing: There is no cleanup/revert logic yet in Cucumber. This means that if you stub a class method, it will remain stubbed for subsequent scenarios. This means high risk of coupled scenarios and unpredictable behaviour if you run scenarios in different orders. If you need a cleanup facility (remove stubbed methods after a scenario), please file a feature request. Aslak > > ///ark > > _______________________________________________ > 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