Skip to content

Instantly share code, notes, and snippets.

@benolee
Created April 25, 2011 19:54
Show Gist options
  • Save benolee/941083 to your computer and use it in GitHub Desktop.
Save benolee/941083 to your computer and use it in GitHub Desktop.
it "registers a new temperature reading via the API" do
page.driver.post('/temperature/new', { :params => { :degrees => "30" } })
page.driver.status_code.should eql 200
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment