From: Kaare Rasmussen Date: Tue, 6 Dec 2011 21:23:51 +0000 (+0100) Subject: Fix warnings_once.t to not die if Test::NoWarnings isn't installed. X-Git-Tag: 0.29~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8769c3ba7bcf327946b54be2a4c25dd7f7cba6c9;p=gitmo%2FMooseX-Singleton.git Fix warnings_once.t to not die if Test::NoWarnings isn't installed. --- diff --git a/Changes b/Changes index 06c7b29..8353265 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,9 @@ Revision history for Perl extension MooseX-Singleton {{$NEXT}} + - Fix warnings_once.t to not die if Test::NoWarnings isn't installed (Kaare) + +0.28 2011-12-05 - Fix RT Bug #46086, "name used only once" (Thanks chisel for the patch and the test) diff --git a/dist.ini b/dist.ini index 4f1f425..e327420 100644 --- a/dist.ini +++ b/dist.ini @@ -3,7 +3,7 @@ author = Shawn M Moore license = Perl_5 copyright_holder = Shawn M Moore -version = 0.28 +version = 0.29 [GatherDir] [PruneCruft] diff --git a/t/warnings_once.t b/t/warnings_once.t index 696cbe5..6152226 100644 --- a/t/warnings_once.t +++ b/t/warnings_once.t @@ -1,6 +1,11 @@ # test script for: https://rt.cpan.org/Ticket/Display.html?id=46086 +use strict; +use warnings; + use Test::More qw(no_plan); -use Test::NoWarnings; +use Test::Requires { + 'Test::NoWarnings' => 0.01 +}; BEGIN { package OnlyUsedOnce;