How to Test External APIs

Submitted by Christoph Olszowka 2012-03-19 08:31:19 UTC
Source:  http://blog.carbonfive.com/2012/03/18/how-to-test-external-apis/

Referenced projects

VCR

VCR provides a simple API to record and replay your test suite's HTTP interactions. It works with a variety of HTTP client libraries, HTTP stubbing libraries and testing frameworks.

Rubygem vcr

Total Downloads
1492112
Releases
56
Current Version
2.9.0
Released
2014-03-27 00:00:00 UTC
First Release
2010-02-25 08:00:00 UTC

Github vcr/vcr

Watchers
1757
Forks
213
Development activity
Less active
Last commit
2014-04-02 15:09:26 UTC
Contributors
30
Issues
Wiki pages

Rubygem rspec

Total Downloads
14437936
Releases
147
Current Version
3.0.0.beta2
Released
2014-02-18 00:00:00 UTC
First Release
2008-07-02 05:00:00 UTC

Github rspec/rspec

Watchers
912
Forks
106
Development activity
Less active
Last commit
2014-03-16 22:39:28 UTC
Contributors
10
Wiki pages

Ruby on Rails

Ruby on Rails is a full-stack web framework optimized for programmer happiness and sustainable productivity. It encourages beautiful code by favoring convention over configuration.

Rubygem rails

Total Downloads
34307575
Releases
190
Current Version
4.1.0
Released
2014-04-08 00:00:00 UTC
First Release
2004-10-25 04:00:00 UTC

Github rails/rails

Watchers
20812
Forks
7365
Development activity
Very active
Last commit
2014-02-16 18:01:09 UTC
Contributors
2188
Issues

Webmock

WebMock allows stubbing HTTP requests and setting expectations on HTTP requests.

Rubygem webmock

Total Downloads
2854871
Releases
71
Current Version
1.17.4
Released
2014-03-01 23:00:00 UTC
First Release
2009-11-20 00:00:00 UTC

Github bblimke/webmock

Watchers
1241
Forks
182
Development activity
Active
Last commit
2014-02-12 20:52:01 UTC
Contributors
86
Issues
Wiki pages
×

In order to continue, you must be signed in using your Github account.

If you're signing in using this account for the first time Github will ask for your permission to give access to your public user data to the Ruby Toolbox.

Although the Github Authorization page does not mention it, the request includes read-only access to your verified email address (user:email OAuth scope). This is neccessary so there's a way to notify you about comments, information about your accepted project edits and the like. You can review your notification settings on your account page once you're signed in.