Skip to content

Instantly share code, notes, and snippets.

@richo
Created May 18, 2012 01:47
Show Gist options
  • Save richo/2722650 to your computer and use it in GitHub Desktop.
Save richo/2722650 to your computer and use it in GitHub Desktop.
require File.expand_path("../../test_helper", __FILE__)
class HelloWorldTest < Test::Unit::TestCase
def test_it_says_hello_world
expect :get, "/hello", "body goes here", { "X-Someheader" => "value" } do |response|
# Assertions about response go here
assert_equal response.body, "body goes here"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment