[rspec-users] I need some guidance
mailing_lists at railsnewbie.com
Fri Dec 21 14:45:28 EST 2007
> to stub or mock this in some way. I think I just need some
> guidance on how to approach something like this.
> Do I just ignore the implementation details?
> Do I push the actual posting of data to a private method and mock
> that method so that I can verify that it is being called?
> Would you recommend I actually hit the web service?
Oh yeah - and also, you probably will want an integration test which
actually hits the web service at least once just to check that the
API hasn't changed (and so on, if you can actually do it). But
that's what the story runner is for (and not mock objects).
More information about the rspec-users