205 no longer sends a body, as per RFC 2616

This commit is contained in:
Konstantin Haase 2011-08-17 14:02:05 +02:00
parent af6b4c5367
commit c2366764b9
1 changed files with 2 additions and 2 deletions

View File

@ -54,12 +54,12 @@ class ResultTest < Test::Unit::TestCase
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