Created
May 17, 2009 00:37
-
-
Save levicole/112865 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
it "should be ok" do | |
get "/api/fakeguid/events" | |
Rails.logger.info "#{response.inspect}" | |
response.should be_ok | |
end | |
# results of response.inspect | |
#<Rack::MockResponse:0x36a6898 @headers={"Content-Type"=>"text/html", "Content-Length"=>"414"}, @errors="", @original_headers={"Content-Type"=>"text/html", "Content-Length"=>"414"}, @body="<!DOCTYPE html>\n<html>\n<head>\n <style type=\"text/css\">\n body { text-align:center;font-family:helvetica,arial;font-size:22px;\n color:#888;margin:20px}\n #c {margin:0 auto;width:500px;text-align:left}\n </style>\n</head>\n<body>\n <h2>Sinatra doesn't know this ditty.</h2>\n <img src='/__sinatra__/404.png'>\n <div id=\"c\">\n Try this:\n <pre>get '/hello' do\n \"Hello World\"\nend</pre>\n </div>\n</body>\n</html>\n", @status=404> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment