X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fisa.t;fp=t%2Fisa.t;h=14e33433fecfa2e91f9af145dd8422f7f2174f01;hb=102106be3c8e89bbc54717a51ce02b6e778f4698;hp=0000000000000000000000000000000000000000;hpb=0566b5e4384952b19e67bda80c89a26696ad6232;p=catagits%2FCatalyst-Action-REST.git 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')); +