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

Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.

Rubygem vcr

Total Downloads
5294146
Releases
63
Current Version
3.0.3
Released
2016-05-22 00:00:00 UTC
First Release
2010-02-25 08:00:00 UTC

Github vcr/vcr

Watchers
2931
Forks
327
Development activity
Less active
Last commit
2016-04-28 06:59:05 UTC

Rubygem rspec

Total Downloads
39424229
Releases
159
Current Version
3.5.0.beta4
Released
2016-06-05 00:00:00 UTC
First Release
2008-07-02 05:00:00 UTC
Depends on following gems
Depending Gems
26539

Github rspec/rspec

Watchers
1546
Forks
146
Development activity
Less active
Last commit
2016-04-02 15:22:57 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
69997507
Releases
279
Current Version
5.0.0.rc2
Released
2016-06-22 00:00:00 UTC
First Release
2004-10-25 04:00:00 UTC

Github rails/rails

Watchers
30890
Forks
12525
Development activity
Very active
Last commit
2016-05-03 01:24:22 UTC
Contributors
30
Issues

Webmock

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

Rubygem webmock

Total Downloads
11779416
Releases
99
Current Version
2.1.0
Released
2016-06-03 00:00:00 UTC
First Release
2009-11-20 00:00:00 UTC

Github bblimke/webmock

Watchers
2148
Forks
311
Development activity
Very active
Last commit
2016-05-02 20:56:15 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.