[Catalyst-commits] r13196 - Catalyst-Runtime/5.80/trunk/t/lib/TestApp/Plugin

rafl at dev.catalyst.perl.org rafl at dev.catalyst.perl.org
Sun May 2 23:44:30 GMT 2010


Author: rafl
Date: 2010-05-03 00:44:30 +0100 (Mon, 03 May 2010)
New Revision: 13196

Added:
   Catalyst-Runtime/5.80/trunk/t/lib/TestApp/Plugin/ParameterizedRole.pm
Log:
Unbreak tests by actually adding the module they're supposed to test.

Added: Catalyst-Runtime/5.80/trunk/t/lib/TestApp/Plugin/ParameterizedRole.pm
===================================================================
--- Catalyst-Runtime/5.80/trunk/t/lib/TestApp/Plugin/ParameterizedRole.pm	                        (rev 0)
+++ Catalyst-Runtime/5.80/trunk/t/lib/TestApp/Plugin/ParameterizedRole.pm	2010-05-02 23:44:30 UTC (rev 13196)
@@ -0,0 +1,18 @@
+package TestApp::Plugin::ParameterizedRole;
+
+use MooseX::Role::Parameterized;
+use namespace::autoclean;
+
+parameter method_name => (
+    isa      => 'Str',
+    required => 1,
+);
+
+role {
+    my $p = shift;
+    my $method_name = $p->method_name;
+
+    method $method_name => sub { 'birne' };
+};
+
+1;




More information about the Catalyst-commits mailing list