1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

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

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