# File test/test_wpm_messg_manip.rb, line 204 def test_redirect @env['SERVER_NAME'] = 'server_name' @env['SERVER_PORT'] = '8888' @env['SCRIPT_NAME'] = '/script.cgi' @env['PATH_INFO'] = '/this_page/path/info' @messg_manip.redirect('that_page') assert_equal(3, @env_call) assert_equal(2, @set_header_call) assert_equal(2, @header.size) assert_equal('303 See Other', @header['Status']) assert_equal('http://server_name:8888/script.cgi/that_page/path/info', @header['Location']) end