From: t0m Date: Tue, 29 Mar 2011 20:15:07 +0000 (+0100) Subject: Fix duplicate 'use Test::More' statement in generated components X-Git-Tag: 1.34~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Devel.git;a=commitdiff_plain;h=35124862aa0fd54a2cb4a4b2a35a668d094a55f4 Fix duplicate 'use Test::More' statement in generated components --- diff --git a/Changes b/Changes index 4779612..62f8e33 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,7 @@ This file documents the revision history for Perl extension Catalyst-Devel. + - Fix duplicate 'use Test::More' statement in generated components. + 1.33 2011-03-24 15:10:00 - Fix a regression introduced in 1.32 that caused Catalyst::Restarter to not work at all. diff --git a/share/t/comptest.tt b/share/t/comptest.tt index ff5420c..9ac67d6 100644 --- a/share/t/comptest.tt +++ b/share/t/comptest.tt @@ -18,7 +18,7 @@ use [% class %]; ok( request('[% uri %]')->is_success, 'Request should succeed' ); [%- END -%] -[% ELSE %]use Test::More; +[% ELSE %] BEGIN { use_ok '[% class %]' } [% END -%]