Unbreak remote server tests
Florian Ragwitz [Sun, 15 May 2011 11:47:47 +0000 (13:47 +0200)]
t/aggregate/live_component_controller_action_action.t

index e74642f..bc2038e 100644 (file)
@@ -185,6 +185,10 @@ sub run_tests {
             'Content is a serialized Catalyst::Action'
         );
 
+        require Catalyst::Action; # when running against a remote server, we
+                                  # need to load the class in the test process
+                                  # to be able to introspect the action instance
+                                  # later.
         my $action = eval $response->content;
         is_deeply $action->attributes->{extra_attribute}, [13];
         is_deeply $action->attributes->{another_extra_attribute}, ['foo'];