Skip to content

Instantly share code, notes, and snippets.

@achiurizo
Created September 3, 2011 01:25
Show Gist options
  • Select an option

  • Save achiurizo/1190358 to your computer and use it in GitHub Desktop.

Select an option

Save achiurizo/1190358 to your computer and use it in GitHub Desktop.
context "GET :index" do
setup { get '/' }
asserts(:body).matches %r{hello world}
asserts(:status).equals 200
context "changing stuff" do
hookup { Something.create :stuff => 'this' }
asserts(:body).matches %r{this}
asserts(:status).matches 200
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment