);
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 an :Action of some sort.),
+ q(FATAL ERROR: Couldn't go("TestApp"): Couldn't go to command "TestApp": Invalid action or component.),
'Error message'
);
}
);
ok( !$response->is_success, 'Response Fails' );
is( $response->content,
- q{FATAL ERROR: Couldn't visit("TestApp"): Action has no namespace: cannot visit() to a plain method or component, must be an :Action of some sort.},
+ q{FATAL ERROR: Couldn't visit("TestApp"): Couldn't visit to command "TestApp": Invalid action or component.},
"Cannot visit app namespace"
);
}
use Test::More;
-plan tests => 6;
+plan tests => 5;
use_ok('TestApp');
-is(TestApp->action_for('global_action')->code, TestApp::Controller::Root->can('global_action'),
- 'action_for on appclass ok');
-
is(TestApp->controller('Args')->action_for('args')->code,
TestApp::Controller::Args->can('args'),
'action_for on controller ok');