X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faggregate%2Funit_core_script_cgi.t;h=7c4ca009e3887de050cc0f3f876fb19e2c34e265;hb=fc036112266c785163c051608821d66f42757ed3;hp=697f2ad4147892bb9aeb91f782bd6dd62d8f3ded;hpb=aee7cdcc0b2b3b7dc672b4b4a31b8c3b7ef3f1f7;p=catagits%2FCatalyst-Runtime.git diff --git a/t/aggregate/unit_core_script_cgi.t b/t/aggregate/unit_core_script_cgi.t index 697f2ad..7c4ca00 100644 --- a/t/aggregate/unit_core_script_cgi.t +++ b/t/aggregate/unit_core_script_cgi.t @@ -1,4 +1,3 @@ -#!/usr/bin/env perl use strict; use warnings; @@ -6,14 +5,14 @@ use FindBin qw/$Bin/; use lib "$Bin/../lib"; use Test::More; -use Test::Exception; +use Test::Fatal; use Catalyst::Script::CGI; local @ARGV; -lives_ok { +is exception { Catalyst::Script::CGI->new_with_options(application_name => 'TestAppToTestScripts')->run; -} "new_with_options"; +}, undef, "new_with_options"; shift @TestAppToTestScripts::RUN_ARGS; my $server = pop @TestAppToTestScripts::RUN_ARGS; like ref($server), qr/^Plack::Handler/, 'Is a Plack::Handler';