move repository to http://github.com/moose/MooseX-AlwaysCoerce
[gitmo/MooseX-AlwaysCoerce.git] / t / 02-mx-m-s.t
index 2dbadc7..0f1d071 100644 (file)
@@ -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 1.04 ':early';
-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;