X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-AlwaysCoerce.git;a=blobdiff_plain;f=t%2F02-mx-m-s.t;h=0f1d0718861f600300230a9b31b9a7b6e14a16b9;hp=6b509c0c85ef557c86774146a1871ea9b4ee0df9;hb=fc553705e0102a934825453c17767a7adf937f4a;hpb=0f4a25481287233b742de59e6c2e491cc242ac6d diff --git a/t/02-mx-m-s.t b/t/02-mx-m-s.t index 6b509c0..0f1d071 100644 --- a/t/02-mx-m-s.t +++ b/t/02-mx-m-s.t @@ -25,8 +25,7 @@ use Test::More; } use Test::Fatal; -use Test::NoWarnings 1.04 ':early'; -plan tests => 4; +use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; ok( (my $instance = MyClass->new), 'instance' ); @@ -38,3 +37,5 @@ TODO: { }, undef, 'method called with coerced and uncoerced parameters' ) or todo_skip 'is() test never ran', 1; } + +done_testing;