# File test/test_response.rb, line 192 def test_absolute_location @response.set_header('Location', 'http://www.foo.bar/hello/world') @response.absolute_location(self) assert_equal(0, @host_call) assert_equal('http://www.foo.bar/hello/world', @response.header('Location')) @response.set_header('Location', '/hello/world') @response.absolute_location(self) assert_equal(1, @host_call) assert_equal('http://server:8080/hello/world', @response.header('Location')) end