Skip to content

Commit

Permalink
205 no longer sends a body, as per RFC 2616
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Aug 21, 2011
1 parent 696d895 commit b5053f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/result_test.rb
Expand Up @@ -54,12 +54,12 @@ def res.each ; yield call ; end
it "sets status, headers, and body when result is a Rack response tuple" do it "sets status, headers, and body when result is a Rack response tuple" do
mock_app { mock_app {
get '/' do get '/' do
[205, {'Content-Type' => 'foo/bar'}, 'Hello World'] [203, {'Content-Type' => 'foo/bar'}, 'Hello World']
end end
} }


get '/' get '/'
assert_equal 205, status assert_equal 203, status
assert_equal 'foo/bar', response['Content-Type'] assert_equal 'foo/bar', response['Content-Type']
assert_equal 'Hello World', body assert_equal 'Hello World', body
end end
Expand Down

0 comments on commit b5053f2

Please sign in to comment.