Talking head
RailsConf 2016

This presentation, by Konstantin Tennhard, is licensed under a Creative Commons Attribution ShareAlike 3.0
80x15

Nowadays, we often rely on third party services that we integrate into our product, instead of building every aspect of an application. In many cases, well written API clients exist, but on occasion you run into the issue that there isn't a ready to use client or it simply doesn't fit your needs. How do you write a good API client and more importantly how do you test it without hitting the remote API. So far, the standard approach has been replaying requests with VCR or stubbing them with Webmock. There is a third option: simulating foreign APIs with Sinatra from within your test suite!

Rated: Everyone
Viewed 624 times
Tags: There are no tags for this video.