From: t0m Date: Sun, 12 Jul 2009 23:48:12 +0000 (+0100) Subject: importing Catalyst has special, magical effects. You really didn't want to do that... X-Git-Tag: 0.74~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Action-REST.git;a=commitdiff_plain;h=102106be3c8e89bbc54717a51ce02b6e778f4698 importing Catalyst has special, magical effects. You really didn't want to do that, especially as it makes action role explode --- diff --git a/lib/Catalyst/Action/REST.pm b/lib/Catalyst/Action/REST.pm index 0b55263..edef056 100644 --- a/lib/Catalyst/Action/REST.pm +++ b/lib/Catalyst/Action/REST.pm @@ -12,7 +12,6 @@ use warnings; use base 'Catalyst::Action'; use Class::Inspector; -use Catalyst; use Catalyst::Request::REST; use Catalyst::Controller::REST; diff --git a/t/isa.t b/t/isa.t new file mode 100644 index 0000000..14e3343 --- /dev/null +++ b/t/isa.t @@ -0,0 +1,20 @@ +use strict; +use warnings; + +use FindBin qw/$Bin/; +use lib "$Bin/lib"; + +use Test::More tests => 5; + +use Test::Catalyst::Action::REST; + +my $controller = Test::Catalyst::Action::REST->controller('Root'); +ok $controller; + +my $action = $controller->action_for('test'); +ok $action; + +isa_ok($action, 'Catalyst::Action::REST'); +ok(!$action->isa('Catalyst')); +ok(!$action->isa('Catalyst::Controller')); +