class TestControllerTest
Public Instance Methods
Source
# File test.rb, line 58 def test_empty_body get "/empty" assert_response 200 assert_equal '0', headers['content-length'] # assert headers.key?('content-length') end
works on rack 3.0 content-length key is missing on rack 3.1
Source
# File test.rb, line 49 def test_head get "/head" assert_response 200 assert_equal '0', headers['content-length'] # assert headers.key?('content-length') end
works on rack 3.0 content-length key is missing on rack 3.1
Source
# File test.rb, line 66 def test_with_body get "/body" assert_response 200 assert_equal '1', headers['content-length'] end
works on rack 3.0 and 3.1