From: Dave Rolsky Date: Sat, 19 May 2012 05:42:54 +0000 (-0500) Subject: Failing test for calling ->isa or ->can as a class methods on MooseX::Types::TypeDeco... X-Git-Tag: v0.35~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Types.git;a=commitdiff_plain;h=6db34a2fe061cc3d65fbeb9509e087ea1568986e Failing test for calling ->isa or ->can as a class methods on MooseX::Types::TypeDecorator --- diff --git a/t/24_class_can_isa.t b/t/24_class_can_isa.t new file mode 100644 index 0000000..49c0cfd --- /dev/null +++ b/t/24_class_can_isa.t @@ -0,0 +1,21 @@ +use strict; +use warnings; + +use Test::More; +use Test::Fatal; + +use MooseX::Types::TypeDecorator; + +is( + exception { MooseX::Types::TypeDecorator->isa('X') }, + undef, + 'no exception calling ->isa on MooseX::Types::TypeDecorator as class method' +); + +is( + exception { MooseX::Types::TypeDecorator->can('X') }, + undef, + 'no exception calling ->can on MooseX::Types::TypeDecorator as class method' +); + +done_testing();