Implement automatic role loading for script classes.
[catagits/Catalyst-Runtime.git] / t / lib / ScriptTestApp / TraitFor / Script / Bar.pm
diff --git a/t/lib/ScriptTestApp/TraitFor/Script/Bar.pm b/t/lib/ScriptTestApp/TraitFor/Script/Bar.pm
new file mode 100644 (file)
index 0000000..5d5ecc7
--- /dev/null
@@ -0,0 +1,10 @@
+package ScriptTestApp::TraitFor::Script::Bar;
+use Moose::Role;
+use namespace::autoclean;
+
+around run => sub {
+    my ($orig, $self, @args) = @_;
+    return $self->$orig(@args) . '23';
+};
+
+1;