Unbreak tests by actually adding the module they're supposed to test.
[catagits/Catalyst-Runtime.git] / t / lib / TestApp / Plugin / ParameterizedRole.pm
diff --git a/t/lib/TestApp/Plugin/ParameterizedRole.pm b/t/lib/TestApp/Plugin/ParameterizedRole.pm
new file mode 100644 (file)
index 0000000..f02d454
--- /dev/null
@@ -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;