Skip to content

Instantly share code, notes, and snippets.

@bhb
Created March 17, 2010 21:28
Show Gist options
  • Save bhb/335729 to your computer and use it in GitHub Desktop.
Save bhb/335729 to your computer and use it in GitHub Desktop.
1) Failure:
test_spec {Rack::JSONP when a callback parameter is provided} 001 [should wrap the response body in the Javascript callback](Rack::JSONP when a callback parameter is provided) [./test/spec_rack_jsonp.rb:14]:
<"foo({\"bar\":\"foo\"})"> expected but was
<["{\"bar\":\"foo\"}"]>.
2) Failure:
test_spec {Rack::JSONP when a callback parameter is provided} 002 [should modify the content length to the correct value](Rack::JSONP when a callback parameter is provided) [./test/spec_rack_jsonp.rb:23]:
<"18"> expected but was
<nil>.
3) Failure:
test_spec {Rack::PostBodyContentTypeParser} 002 [should change nothing when the POST body content type isn't application/json](Rack::PostBodyContentTypeParser) [./test/spec_rack_post_body_content_type_parser.rb:20]:
<"asdf"> expected but was
<nil>.
4) Failure:
test_spec {Rack::Profiler} 002 [CallTreePrinter has correct headers](Rack::Profiler) [./test/spec_rack_profiler.rb:19]:
<{"Content-Type"=>"application/octet-stream",
"Content-Disposition"=>"attachment; filename=\"/.process_time.tree\""}> expected but was
<{"Content-Type"=>"text/plain"}>.
5) Failure:
test_spec {Rack::Profiler} 004 [GraphHtmlPrinter has Content-Type text/html](Rack::Profiler) [./test/spec_rack_profiler.rb:31]:
<{"Content-Type"=>"text/html"}> expected but was
<{"Content-Type"=>"text/plain"}>.
119 tests, 342 assertions, 5 failures, 0 errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment