From: Karen Etheridge Date: Thu, 11 Jul 2013 22:00:19 +0000 (-0700) Subject: use warnings tester with fewer dependencies, issues X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3736a8a9ba0b13908a75ea85a944fb1f5fc08fa0;p=gitmo%2FMooseX-ConfigFromFile.git use warnings tester with fewer dependencies, issues --- diff --git a/t/01use.t b/t/01use.t index 8b1cdb1..5d6915f 100644 --- a/t/01use.t +++ b/t/01use.t @@ -2,7 +2,7 @@ use strict; use warnings FATAL => 'all'; use Test::More tests => 2; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; BEGIN { use_ok('MooseX::ConfigFromFile'); diff --git a/t/02subclass.t b/t/02subclass.t index 1a67eaa..109bc0b 100644 --- a/t/02subclass.t +++ b/t/02subclass.t @@ -3,7 +3,7 @@ use warnings FATAL => 'all'; use Test::More tests => 3; use Test::Fatal; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; { package A; diff --git a/t/03configfile_method.t b/t/03configfile_method.t index 42b5e31..0faccc3 100644 --- a/t/03configfile_method.t +++ b/t/03configfile_method.t @@ -2,7 +2,7 @@ use strict; use warnings FATAL => 'all'; use Test::More tests => 7; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; use Test::Fatal; my %config_from_file_args; diff --git a/t/04a_getopt.t b/t/04a_getopt.t index 7013e88..562c54f 100644 --- a/t/04a_getopt.t +++ b/t/04a_getopt.t @@ -2,7 +2,7 @@ use strict; use warnings FATAL => 'all'; use Test::More tests => 2; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; use Test::Without::Module 'MooseX::Getopt'; diff --git a/t/04b_getopt.t b/t/04b_getopt.t index 5e7bc2e..4ba5d5b 100644 --- a/t/04b_getopt.t +++ b/t/04b_getopt.t @@ -3,7 +3,7 @@ use warnings FATAL => 'all'; use Test::Requires 'MooseX::Getopt'; # skip all if not installed use Test::More tests => 3; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; { package Foo::Options; diff --git a/t/05_default_sub.t b/t/05_default_sub.t index b19be3d..7c19421 100644 --- a/t/05_default_sub.t +++ b/t/05_default_sub.t @@ -4,7 +4,7 @@ use warnings FATAL => 'all'; use Test::More tests => 49; use Test::Fatal; use Test::Deep '!blessed'; -use Test::NoWarnings 1.04 ':early'; +use Test::Warnings; use Scalar::Util 'blessed'; my %loaded_file;