Epic fail plugin breaks everything which loads TestApp
Tomas Doran [Fri, 29 May 2009 00:09:11 +0000 (00:09 +0000)]
t/lib/Catalyst/Plugin/MangleDollarUnderScore.pm [new file with mode: 0644]
t/lib/TestApp.pm

diff --git a/t/lib/Catalyst/Plugin/MangleDollarUnderScore.pm b/t/lib/Catalyst/Plugin/MangleDollarUnderScore.pm
new file mode 100644 (file)
index 0000000..aee621b
--- /dev/null
@@ -0,0 +1,16 @@
+package Catalyst::Plugin::MangleDollarUnderScore;
+use strict;
+use warnings;
+
+our $VERSION = 0.1; # Make is_class_loaded happy
+
+# Class::MOP::load_class($_) can hurt you real hard.
+BEGIN { $_ = q{
+mst sayeth, Class::MOP::load_class($_) will ruin your life
+rafl spokeh "i ♥ my $_"',
+and verrily forsooth, t0m made tests
+and yea, there was fail' }; }
+
+1;
+__END__
+
index 4242c5a..0d03647 100644 (file)
@@ -2,6 +2,7 @@ package TestApp;
 
 use strict;
 use Catalyst qw/
+    MangleDollarUnderScore
     Test::Errors 
     Test::Headers 
     Test::Plugin