# File test/test_wpm_messg_manip.rb, line 230 def test_redirect_with_query2 @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', [ %w[ foo 1 ], %w[ bar 2 ]]) 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?foo=1&bar=2', @header['Location']) end