X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F02-mx-m-s.t;fp=t%2F02-mx-m-s.t;h=3209e64ca25cd69a055a9ed613afe12d41e21eb6;hb=9381ff3cc1d01c52adaa24d0cf720fdd486594ab;hp=9b36d7795b58410bd605897ee6cfe696b5745581;hpb=a468d9fdb8840e9e149c6b9348674fa7102b0195;p=gitmo%2FMooseX-AlwaysCoerce.git diff --git a/t/02-mx-m-s.t b/t/02-mx-m-s.t index 9b36d77..3209e64 100644 --- a/t/02-mx-m-s.t +++ b/t/02-mx-m-s.t @@ -2,19 +2,14 @@ use strict; use warnings; -use Test::More tests => 3; - -use Test::Requires { - 'MooseX::Method::Signatures' => 0.01, -}; - -use Test::Fatal; -use Test::NoWarnings; +use Test::More; { package MyClass; use Moose; - use MooseX::Method::Signatures; + use Test::Requires { + 'MooseX::Method::Signatures' => 0.01, + }; use MooseX::AlwaysCoerce; use Moose::Util::TypeConstraints; @@ -30,6 +25,10 @@ use Test::NoWarnings; } } +use Test::Fatal; +use Test::NoWarnings; +plan tests => 4; + ok( (my $instance = MyClass->new), 'instance' ); TODO: { @@ -37,5 +36,6 @@ TODO: { is( exception { is $instance->foo(foo => "text", bar => 42), '4 42'; - }, undef, 'method called with coerced and uncoerced parameters' ); + }, undef, 'method called with coerced and uncoerced parameters' ) + or todo_skip 'is() test never ran', 1; }