'chained + local endpoint; missing last argument' );
is( $response->header('X-Catalyst-Executed'),
$expected, 'Executed actions' );
- is( $response->header('Status'), 500, 'Status OK' );
+ is( $response->code, 500, 'Status OK' );
}
#
'multi-action (three args, should lead to error)' );
is( $response->header('X-Catalyst-Executed'),
$expected, 'Executed actions' );
- is( $response->header('Status'), 500, 'Status OK' );
+ is( $response->code, 500, 'Status OK' );
}
#
"Loose end is not callable" );
is( $response->header('X-Catalyst-Executed'),
$expected, 'Executed actions' );
- is( $response->header('Status'), 500, 'Status OK' );
+ is( $response->code, 500, 'Status OK' );
}
#
ok( my $response = request(
'http://localhost/action/chained/to_root' ),
'uri_for with chained root action as arg' );
- is( $response->content,
- 'URI:http://localhost/',
+ like( $response->content,
+ qr(URI:http://[^/]+/),
'Correct URI generated' );
}