X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fundef-params.t;h=24b23cc6025660769e0bc3dbe358c1d1e37cf899;hp=a6d7594ab88600c1b3e12997f38e918bd29fb2b7;hb=fbd5d4fa65e4e10dd160ae5637e4b94a5b0d54f4;hpb=235d641ef0d52e9a9e78dd5cf8fffb47d4d9e7b7 diff --git a/t/undef-params.t b/t/undef-params.t index a6d7594..24b23cc 100644 --- a/t/undef-params.t +++ b/t/undef-params.t @@ -33,10 +33,11 @@ use Plack::Test; $SIG{__WARN__} = sub { my $error = shift; - Test::More::is($error, "You called ->params with an undefined value at t/undef-params.t line 20.\n"); + Test::More::like($error, qr[You called ->params with an undefined value]) + unless MyApp->debug; }; - MyApp->setup, 'setup app'; + MyApp->setup; } ok my $psgi = MyApp->psgi_app, 'build psgi app';