Skip to content

Instantly share code, notes, and snippets.

@adamwiggins
Created March 19, 2010 18:46
Show Gist options
  • Save adamwiggins/338022 to your computer and use it in GitHub Desktop.
Save adamwiggins/338022 to your computer and use it in GitHub Desktop.
require 'restclient'
require 'json'
hash = JSON.parse RestClient.get('http://json-test.heroku.com/', :accept => :json)
if hash['hello'] != 'world'
puts "Failed"
exit 1
end
puts "Success"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment