[Catalyst-commits] r11920 - Catalyst-Runtime/5.80/branches/basic-app-ctx-separation-cleaned/t/aggregate

zby at dev.catalyst.perl.org zby at dev.catalyst.perl.org
Thu Nov 19 22:16:13 GMT 2009


Author: zby
Date: 2009-11-19 22:16:12 +0000 (Thu, 19 Nov 2009)
New Revision: 11920

Modified:
   Catalyst-Runtime/5.80/branches/basic-app-ctx-separation-cleaned/t/aggregate/live_component_controller_action_go.t
   Catalyst-Runtime/5.80/branches/basic-app-ctx-separation-cleaned/t/aggregate/live_component_controller_action_visit.t
   Catalyst-Runtime/5.80/branches/basic-app-ctx-separation-cleaned/t/aggregate/unit_core_action_for.t
Log:
Application is not a Controller any more (test fixes)

Modified: Catalyst-Runtime/5.80/branches/basic-app-ctx-separation-cleaned/t/aggregate/live_component_controller_action_go.t
===================================================================
--- Catalyst-Runtime/5.80/branches/basic-app-ctx-separation-cleaned/t/aggregate/live_component_controller_action_go.t	2009-11-19 22:00:27 UTC (rev 11919)
+++ Catalyst-Runtime/5.80/branches/basic-app-ctx-separation-cleaned/t/aggregate/live_component_controller_action_go.t	2009-11-19 22:16:12 UTC (rev 11920)
@@ -242,7 +242,7 @@
         );
         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'
         );
     }

Modified: Catalyst-Runtime/5.80/branches/basic-app-ctx-separation-cleaned/t/aggregate/live_component_controller_action_visit.t
===================================================================
--- Catalyst-Runtime/5.80/branches/basic-app-ctx-separation-cleaned/t/aggregate/live_component_controller_action_visit.t	2009-11-19 22:00:27 UTC (rev 11919)
+++ Catalyst-Runtime/5.80/branches/basic-app-ctx-separation-cleaned/t/aggregate/live_component_controller_action_visit.t	2009-11-19 22:16:12 UTC (rev 11920)
@@ -253,7 +253,7 @@
         );
         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"
         );
     }

Modified: Catalyst-Runtime/5.80/branches/basic-app-ctx-separation-cleaned/t/aggregate/unit_core_action_for.t
===================================================================
--- Catalyst-Runtime/5.80/branches/basic-app-ctx-separation-cleaned/t/aggregate/unit_core_action_for.t	2009-11-19 22:00:27 UTC (rev 11919)
+++ Catalyst-Runtime/5.80/branches/basic-app-ctx-separation-cleaned/t/aggregate/unit_core_action_for.t	2009-11-19 22:16:12 UTC (rev 11920)
@@ -8,13 +8,10 @@
 
 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');




More information about the Catalyst-commits mailing list