X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F03-roles.t;h=39f5b87341e61e19b7a78b0bfe85b3a1026aba3f;hb=fc553705e0102a934825453c17767a7adf937f4a;hp=f3ff3ecf2210c5d26fe7ed29a4f87b91d44eaaa2;hpb=4fb8b2bfce62abef02df6612738d6e1a1bdb1991;p=gitmo%2FMooseX-AlwaysCoerce.git diff --git a/t/03-roles.t b/t/03-roles.t index f3ff3ec..39f5b87 100644 --- a/t/03-roles.t +++ b/t/03-roles.t @@ -1,10 +1,9 @@ -#!/usr/bin/env perl use strict; use warnings; -use Test::More tests => 16; +use Test::More; use Test::Fatal; -use Test::NoWarnings; +use if $ENV{AUTHOR_TESTING}, 'Test::Warnings'; { package MyRole; @@ -79,3 +78,5 @@ is( exception { $instance->untyped_class_attr(10); is $instance->untyped_class_attr, 10; }, undef, 'set untyped class attribute' ); + +done_testing;