[rspec-users] cucumber - when to stub/mock
Matthew Van Horn
mattvanhorn at gmail.com
Sun May 3 21:58:47 EDT 2009
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?
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.
thanks for any advice,
Matt Van Horn
More information about the rspec-users