# File test/test_wpm_messg_manip.rb, line 98 def test_write @messg_manip.write("<html>\n") @messg_manip.write("<head><title>HALO</title></head>\n") @messg_manip.write("<body><p>Hello world.</p></body>\n") @messg_manip.write("</html>\n") assert_equal(4, @write_call) messg_body = "<html>\n" messg_body << "<head><title>HALO</title></head>\n" messg_body << "<body><p>Hello world.</p></body>\n" messg_body << "</html>\n" assert_equal(messg_body, @write_messg_body) end