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
2964738
Releases
59
Current Version
2.9.3
Released
2014-09-08 00:00:00 UTC
First Release
2010-02-25 08:00:00 UTC
Depends on following gems
Depending Gems
1262

Github vcr/vcr

Watchers
2394
Forks
266
Development activity
Less active
Last commit
2015-06-06 17:15:37 UTC

Rubygem rspec

Total Downloads
25174877
Releases
154
Current Version
3.3.0
Released
2015-06-12 00:00:00 UTC
First Release
2008-07-02 05:00:00 UTC
Depends on following gems
Depending Gems
26403

Github rspec/rspec

Watchers
1303
Forks
137
Development activity
Less active
Last commit
2015-06-12 15:35:31 UTC

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
49190473
Releases
244
Current Version
4.2.1
Released
2015-03-19 00:00:00 UTC
First Release
2004-10-25 04:00:00 UTC

Github rails/rails

Watchers
26666
Forks
10642
Development activity
Very active
Last commit
2015-06-26 01:06:48 UTC
Contributors
30
Issues

Webmock

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

Rubygem webmock

Total Downloads
5913742
Releases
79
Current Version
1.21.0
Released
2015-03-28 00:00:00 UTC
First Release
2009-11-20 00:00:00 UTC

Github bblimke/webmock

Watchers
1411
Forks
206
Development activity
Less active
Last commit
2014-06-22 11:34:05 UTC
×

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.