Mysterious Trousers

Quality software and amazing support since 2010

We’re a small team dedicated to making you happy. We achieve this through synergizing analytics and best-of-breed social blah blah blah hard work and honest-to-goodness customer service.

HTTP Replay Gem

I was just checking out the latest Railscast this week (railscasts.com), and he shows a really cool gem I hadn’t seen before:

https://github.com/myronmarston/vcr

It records all of your HTTP events which you can “play back” and then make assertions about. So if you were developing an iOS app that used a web-service, you could start the gem recording, do a sequence of events on the iOS device as your test case, then play back those events whenever you like and make assertions that it actually did update the DB on a POST, or whatever. Cool stuff.

© 2013 Mysterious Trousers, LLC. All Rights Reserved. Background photo by hsld