In Ruby, using Cucumber, should I mock out calls to a webservice?

Posted by Gordon McAllister on Stack Overflow See other posts from Stack Overflow or by Gordon McAllister
Published on 2010-05-28T11:03:49Z Indexed on 2010/05/28 13:31 UTC
Read the original article Hit count: 385

Filed under:
|
|

All,

I'm using Cucumber for acceptance testing a Ruby command line utility. This utility pulls data in from a webservice.

I understand Cucumber is for acceptance testing and tests the whole stack but I still need to provide consistant replies from the webservice.

Should I mock the webservice? If yes, how? What's the best approach here?

Cheers, Gordon

© Stack Overflow or respective owner

Related posts about ruby

Related posts about mocking