[Catalyst-commits] r13284 - in Catalyst-View-Email/trunk: . t
dhoss at dev.catalyst.perl.org
dhoss at dev.catalyst.perl.org
Sat May 22 02:34:13 GMT 2010
Author: dhoss
Date: 2010-05-22 03:34:13 +0100 (Sat, 22 May 2010)
New Revision: 13284
Modified:
Catalyst-View-Email/trunk/Makefile.PL
Catalyst-View-Email/trunk/t/05template.t
Catalyst-View-Email/trunk/t/07mason.t
Log:
now using Test::Requires
Modified: Catalyst-View-Email/trunk/Makefile.PL
===================================================================
--- Catalyst-View-Email/trunk/Makefile.PL 2010-05-20 20:35:20 UTC (rev 13283)
+++ Catalyst-View-Email/trunk/Makefile.PL 2010-05-22 02:34:13 UTC (rev 13284)
@@ -1,4 +1,5 @@
use inc::Module::Install 0.91;
+test_requires 'Test::Requires';
name 'Catalyst-View-Email';
all_from 'lib/Catalyst/View/Email.pm';
@@ -16,9 +17,8 @@
requires 'Email::MIME' => '1.859';
requires 'Email::MIME::Creator' => '1.455';
requires 'Test::More' => '0.88';
-## patches welcome if you don't want these installed. I'm not maintaining a dist with optional deps.
-requires 'Catalyst::View::TT' => '0.31';
-requires 'Catalyst::View::Mason' => '0.18';
+#requires 'Catalyst::View::TT' => '0.31';
+#requires 'Catalyst::View::Mason' => '0.18';
# Rebuild README for maintainers
if ($Module::Install::AUTHOR) {
Modified: Catalyst-View-Email/trunk/t/05template.t
===================================================================
--- Catalyst-View-Email/trunk/t/05template.t 2010-05-20 20:35:20 UTC (rev 13283)
+++ Catalyst-View-Email/trunk/t/05template.t 2010-05-22 02:34:13 UTC (rev 13284)
@@ -3,7 +3,9 @@
BEGIN { $ENV{EMAIL_SENDER_TRANSPORT} = 'Test' }
use Test::More;
-
+use Test::Requires {
+ 'Template' => '0.31',
+};
use Email::Sender::Simple;
use FindBin;
use lib "$FindBin::Bin/lib";
Modified: Catalyst-View-Email/trunk/t/07mason.t
===================================================================
--- Catalyst-View-Email/trunk/t/07mason.t 2010-05-20 20:35:20 UTC (rev 13283)
+++ Catalyst-View-Email/trunk/t/07mason.t 2010-05-22 02:34:13 UTC (rev 13284)
@@ -1,6 +1,9 @@
use strict;
use warnings;
use Test::More;
+use Test::Requires {
+ 'Catalyst::View::Mason' => '0.18',
+};
##
BEGIN { $ENV{EMAIL_SENDER_TRANSPORT} = 'Test' }
@@ -9,12 +12,6 @@
use Email::Sender::Simple;
-eval "use Catalyst::View::Mason";
-if ( $@ ) {
- plan skip_all => 'Catalyst::View::Mason required for Mason tests';
- exit;
-}
-
use_ok('Catalyst::Test', 'TestApp');
TestApp->config->{default_view} = 'Mason';
More information about the Catalyst-commits
mailing list