X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F02-mx-m-s.t;h=0f1d0718861f600300230a9b31b9a7b6e14a16b9;hb=bb4a98dc91f85fd0f14f85fdcb7c620aecbd33de;hp=3209e64ca25cd69a055a9ed613afe12d41e21eb6;hpb=9381ff3cc1d01c52adaa24d0cf720fdd486594ab;p=gitmo%2FMooseX-AlwaysCoerce.git diff --git a/t/02-mx-m-s.t b/t/02-mx-m-s.t index 3209e64..0f1d071 100644 --- a/t/02-mx-m-s.t +++ b/t/02-mx-m-s.t @@ -1,4 +1,3 @@ -#!/usr/bin/env perl use strict; use warnings; @@ -26,8 +25,7 @@ use Test::More; } use Test::Fatal; -use Test::NoWarnings; -plan tests => 4; +use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; ok( (my $instance = MyClass->new), 'instance' ); @@ -39,3 +37,5 @@ TODO: { }, undef, 'method called with coerced and uncoerced parameters' ) or todo_skip 'is() test never ran', 1; } + +done_testing;