X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Faggregate%2Funit_core_script_cgi.t;h=7c4ca009e3887de050cc0f3f876fb19e2c34e265;hp=ffadb8af43b5510e8f5269be355b801322a3b3ec;hb=44cf095889e0f32e501830b3d3d279667146ea94;hpb=b17bc48c698f981642d6f31beaa6bd88f4b279ac diff --git a/t/aggregate/unit_core_script_cgi.t b/t/aggregate/unit_core_script_cgi.t index ffadb8a..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,17 +5,19 @@ 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'; -is_deeply \@TestAppToTestScripts::RUN_ARGS, [], "no args"; +is ref(delete($TestAppToTestScripts::RUN_ARGS[0]->{argv})), 'ARRAY'; +is ref(delete($TestAppToTestScripts::RUN_ARGS[0]->{extra_argv})), 'ARRAY'; +is_deeply \@TestAppToTestScripts::RUN_ARGS, [{}], "no args"; done_testing;