fix up test to match release.
Brian Cassidy [Tue, 27 May 2008 01:43:13 +0000 (01:43 +0000)]
t/lib/TestApp/Controller/Action/ForwardTo.pm
t/live_component_controller_action_forward.t

index 0f12af0..92db7f2 100644 (file)
@@ -5,7 +5,7 @@ use base 'TestApp::Controller::Action';
 
 sub uri_check : Private {
     my ( $self, $c ) = @_;
-    $c->res->body( $c->uri_for('foo/bar') );
+    $c->res->body( $c->uri_for('foo/bar')->path );
 }
 
 1;
index f05fc2d..7c14b78 100644 (file)
@@ -242,9 +242,7 @@ sub run_tests {
             'forward_to_uri_check request');
 
         ok( $response->is_success, 'forward_to_uri_check successful');
-        # optional port, as it could be a live test
-        like( $response->content, qr{http://localhost(:\d+)?/action/forward/foo/bar},
+        is( $response->content, '/action/forward/foo/bar',
              'forward_to_uri_check correct namespace');
     }
-
 }