Skip to content

Instantly share code, notes, and snippets.

@bryanaka
Last active December 30, 2015 05:28
Show Gist options
  • Save bryanaka/7782446 to your computer and use it in GitHub Desktop.
Save bryanaka/7782446 to your computer and use it in GitHub Desktop.
Revolutionize Testing Challenge
require "bundler/setup"
require "httparty"
require "json"
def get(url)
response = HTTParty.get(url, :headers => {"Accept" => "application/json"} )
json = JSON.parse(response.body)
json["follow"] ? get(json["follow"]) : json
end
puts get("http://www.letsrevolutionizetesting.com/challenge")
source "https://rubygems.org"
gem "httparty"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment