Application is not a Controller any more (test fixes)
Zbigniew Łukasiak [Thu, 19 Nov 2009 22:16:12 +0000 (22:16 +0000)]
t/aggregate/live_component_controller_action_go.t
t/aggregate/live_component_controller_action_visit.t
t/aggregate/unit_core_action_for.t

index 8554f72..5d4514b 100644 (file)
@@ -242,7 +242,7 @@ sub run_tests {
         );
         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'
         );
     }
index b331e7c..fff13ce 100644 (file)
@@ -253,7 +253,7 @@ sub run_tests {
         );
         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"
         );
     }
index e3deb13..7d89d6f 100644 (file)
@@ -8,13 +8,10 @@ use lib "$FindBin::Bin/../lib";
 
 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');