Skip to content

Instantly share code, notes, and snippets.

@hosiawak
Created September 24, 2011 18:18
Show Gist options
  • Save hosiawak/1239660 to your computer and use it in GitHub Desktop.
Save hosiawak/1239660 to your computer and use it in GitHub Desktop.
describe "when passed URI" do
it "it prints the body of the specified uri to $stdout" do
120000.times do
lambda do
Net::HTTP.get_print URI.parse('http://localhost:3333/')
end.should output(/This is the index page\./)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment