AGH. Too tired to be doing this, fucked it up again
[catagits/Catalyst-Runtime.git] / t / unit_controller_actions.t
index 3ca705f..26e603d 100644 (file)
@@ -22,5 +22,5 @@ my $controller = TestController->new($app, {actions => { foo => { Path => '/some
 ok $controller->can('_controller_actions');
 is_deeply $controller->_controller_actions => { foo => { Path => '/some/path' }};
 is_deeply $controller->{actions} => { foo => { Path => '/some/path' }}; # Back compat.
-is_deeply [ sort grep { ! /^_/ } $controller->get_action_methods ], [sort qw/action foo/];
+is_deeply [ sort grep { ! /^_/ } map { $_->name } $controller->get_action_methods ], [sort qw/action foo/];