Permalink
Browse files

205 no longer sends a body, as per RFC 2616

  • Loading branch information...
1 parent 696d895 commit b5053f273de8b016eee8dce78bc39647d1fb1e4c @rkh rkh committed Aug 17, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/result_test.rb
View
@@ -54,12 +54,12 @@ def res.each ; yield call ; end
it "sets status, headers, and body when result is a Rack response tuple" do
mock_app {
get '/' do
- [205, {'Content-Type' => 'foo/bar'}, 'Hello World']
+ [203, {'Content-Type' => 'foo/bar'}, 'Hello World']
end
}
get '/'
- assert_equal 205, status
+ assert_equal 203, status
assert_equal 'foo/bar', response['Content-Type']
assert_equal 'Hello World', body
end

0 comments on commit b5053f2

Please sign in to comment.