[Catalyst-commits] r12061 - in
Catalyst-Runtime/5.80/branches/better_scripts/t/lib:
Catalyst/Script ScriptTestApp/Script
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Sat Nov 28 12:38:14 GMT 2009
Author: t0m
Date: 2009-11-28 12:38:12 +0000 (Sat, 28 Nov 2009)
New Revision: 12061
Added:
Catalyst-Runtime/5.80/branches/better_scripts/t/lib/Catalyst/Script/CompileTest.pm
Catalyst-Runtime/5.80/branches/better_scripts/t/lib/ScriptTestApp/Script/CompileTest.pm
Log:
Adding the files you need for the tests you've committed helps them pass, idiot :)
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/lib/Catalyst/Script/CompileTest.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/lib/Catalyst/Script/CompileTest.pm (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/lib/Catalyst/Script/CompileTest.pm 2009-11-28 12:38:12 UTC (rev 12061)
@@ -0,0 +1,16 @@
+package Catalyst::Script::CompileTest;
+use Moose;
+use namespace::autoclean;
+
+use Test::More;
+
+with 'Catalyst::ScriptRole';
+
+sub run { __PACKAGE__ }
+
+after new_with_options => sub {
+ my ($self, %args) = @_;
+ is_deeply \%args, { application_name => 'ScriptTestApp' }, 'App name correct';
+};
+
+1;
Added: Catalyst-Runtime/5.80/branches/better_scripts/t/lib/ScriptTestApp/Script/CompileTest.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/t/lib/ScriptTestApp/Script/CompileTest.pm (rev 0)
+++ Catalyst-Runtime/5.80/branches/better_scripts/t/lib/ScriptTestApp/Script/CompileTest.pm 2009-11-28 12:38:12 UTC (rev 12061)
@@ -0,0 +1,7 @@
+package ScriptTestApp::Script::CompileTest;
+use Moose;
+use namespace::autoclean;
+
+die("Does not compile");
+
+1;
More information about the Catalyst-commits
mailing list