开发者

Building and testing Rails apps that are dependant on an API

开发者 https://www.devze.com 2023-02-25 05:40 出处:网络
I\'m building an app that essentially displays data coming out of an external SOAP service, and occasionally posts some updates to it.

I'm building an app that essentially displays data coming out of an external SOAP service, and occasionally posts some updates to it.

Question is, what is the best approach to building this app both from a testing point of view, and 开发者_Go百科taking that into the development itself?


You can check https://github.com/myronmarston/vcr. For a more high level view than fakeweb.


For development:

I would create a lib with all exchange methods.

For testing:

I'd use fakeweb to simulate Api calls so that I won't rely on the genuine Api. https://github.com/chrisk/fakeweb

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号