BEGIN { $iters = $ENV{CAT_BENCH_ITERS} || 1; }
use Test::More tests => 54 * $iters;
+use Catalyst;
use Catalyst::Test 'TestApp';
if ( $ENV{CAT_BENCHMARK} ) {
);
ok( !$response->is_success, 'Response Fails' );
is( $response->content,
- q(FATAL ERROR: Couldn't go("TestApp"): Action has no namespace: cannot go() to a plain method or component, must be a :Action or some sort.),
+ q(FATAL ERROR: Couldn't go("TestApp"): Action has no namespace: cannot go() to a plain method or component, must be an :Action of some sort.),
'Error message'
);
}
ok( my $response = request('http://localhost/action/go/go_chained'), 'go to chained + subcontroller endpoint' );
is( $response->header('X-Catalyst-Executed'),
$expected, 'Executed actions' );
- is( $response->content, '; 1', 'Content OK' );
+ is( $response->content, 'arg1, arg2; captureme', 'Content OK' );
}
}