> I'm just curious about this, since my solution involved stubbing a call to > GeoIp. > > Is there a good rule of thumb for when you make exceptions to the 'no > stubbing' philosophy of Cucumber? >
This is the rule of thumb: http://wiki.github.com/aslakhellesoy/cucumber/mocking-and-stubbing-with-cucumber > My step was: "Given I am accessing the site from Japan," but I can think of > other situations - mostly when interacting with web services, that I'd > probably want to stub something, rather than requiring a net connection for > testing. > Your case might be special enough that the rule of thumb doesn't apply. If you explain in more detail what's going on I might be able to give some more advice on how to address it. Aslak > > thanks for any advice, > Matt Van Horn > _______________________________________________ > 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