RailsConf 2016 - Foreign API Simulation with Sinatra by Konstantin Tennhard

Channel:
Subscribers:
42,400
Published on ● Video Link: https://www.youtube.com/watch?v=LAR7foT9kUE



Duration: 28:54
777 views
5


Foreign API Simulation with Sinatra by Konstantin Tennhard

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!

Help us caption & translate this video!

http://amara.org/v/JvLq/




Other Videos By Confreaks


2016-05-30!!Con 2016 - The Tales of the Cursed Operating Systems Textbook! By Kiran Bhattaram
2016-05-30!!Con - Keynote: The Creative Programmer By Catt Small
2016-05-30!!Con 2016 - A Shot in the Dark! By Brendan Curran Johnson
2016-05-30!!Con 2016 - Code in Spaaaaaace!!!!! by Katie Bechtold
2016-05-29RailsConf 2016 - Closing Keynote: Paul Lamere
2016-05-29RailsConf 2016 - Tweaking Ruby GC Parameters for Fun, Speed, and Profit by Helio Cola
2016-05-29RailsConf 2016 - Storytelling with Code by Michael Rau
2016-05-29RailsConf 2016 - Pat Packet Visits Ruby Rails by Jeremy fairbank
2016-05-29RailsConf 2016 - Your First Legacy Codebase by Coraline Ehmke
2016-05-29RailsConf 2016 - 3x Rails: Tuning the Framework Internals by Akira Matsuda
2016-05-29RailsConf 2016 - Foreign API Simulation with Sinatra by Konstantin Tennhard
2016-05-28RailsConf 2016 - Succession by Katrina Owen
2016-05-28RailsConf 2016 - Postcards from GorbyPuff by Aja Hammerly
2016-05-28RailsConf 2016 - Sponsor: Hired by Bradley Herman
2016-05-28RailsConf 2016 - Get a Whiff of This by Sandi Metz
2016-05-28RailsConf 2016 - How to Build a Skyscraper by Ernie Miller
2016-05-28RailsConf 2016 - Sponsor: Indeed by Chris Colòn
2016-05-28RailsConf 2016 - Pragmatic Lessons of Rails & Ruby in the Enterprise by Nathan Beyer
2016-05-27RailsConf 2016 - Lightning Talks
2016-05-27RailsConf 2016 - Can Time-Travel Keep You From Blowing Up The Enterprise? by David Copeland
2016-05-27RailsConf 2016 - Managing Growing Pains: Thinking Big While Being Small by Joe Arnold