# File test/test_response.rb, line 295 def test_message_body assert(! @response.closed_head?) @response.start_body assert(@response.closed_head?) assert_equal(1, @write_head_call) assert_equal(@response, @write_head_value) @response.write("foo\n") assert_equal(1, @write_call) assert_equal("foo\n", @write_value) @response << "bar\n" << "baz\n" assert_equal(3, @write_call) assert_equal("baz\n", @write_value) end