Updating branch to current revision
[catagits/Catalyst-Runtime.git] / trunk / t / aggregate / meta_method_unneeded.t
diff --git a/trunk/t/aggregate/meta_method_unneeded.t b/trunk/t/aggregate/meta_method_unneeded.t
new file mode 100644 (file)
index 0000000..f52a9b4
--- /dev/null
@@ -0,0 +1,20 @@
+use strict;
+use warnings;
+use FindBin qw/$Bin/;
+use lib "$Bin/../lib";
+use Test::More tests => 1;
+use Test::Exception;
+use Carp ();
+
+# Doing various silly things, like for example
+# use CGI qw/:standard/ in your conrtoller / app
+# will overwrite your meta method, therefore Catalyst
+# can't depend on it being there correctly.
+
+# This is/was demonstrated by Catalyst::Controller::WrapCGI
+# and Catalyst::Plugin::Cache::Curried
+
+use Catalyst::Test 'TestAppWithMeta';
+
+ok( request('/')->is_success );
+