X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=trunk%2Ft%2Faggregate%2Fmeta_method_unneeded.t;fp=trunk%2Ft%2Faggregate%2Fmeta_method_unneeded.t;h=f52a9b4bb63c10346646446abd61371db5f9ca9c;hb=e28a6876ad3e11890226e5bab6df4b0725e0981e;hp=0000000000000000000000000000000000000000;hpb=21c94d83082b43028cafcfb18659090b13d832fa;p=catagits%2FCatalyst-Runtime.git diff --git a/trunk/t/aggregate/meta_method_unneeded.t b/trunk/t/aggregate/meta_method_unneeded.t new file mode 100644 index 0000000..f52a9b4 --- /dev/null +++ b/trunk/t/aggregate/meta_method_unneeded.t @@ -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 ); +