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_fastcgi.t;h=06300f57219f36b2fbda27e907c5ef4772fecc43;hp=b5d3ea49e236e0b033bedfc8657d7468cd3b4caa;hb=9c74923de2304b8c8f0a7a2faa0854ad9b4d3a92;hpb=e1d59dc47052af927345195b14f9163f6dffd591 diff --git a/t/aggregate/unit_core_script_fastcgi.t b/t/aggregate/unit_core_script_fastcgi.t index b5d3ea4..06300f5 100644 --- a/t/aggregate/unit_core_script_fastcgi.t +++ b/t/aggregate/unit_core_script_fastcgi.t @@ -39,6 +39,10 @@ testOption( [ qw/-e/ ], [undef, opthash(keep_stderr => 1)] ); testOption( [ qw/--nproc 6/ ], [undef, opthash(nproc => 6)] ); testOption( [ qw/--n 6/ ], [undef, opthash(nproc => 6)] ); +# title +testOption( [ qw/--title foo/ ], [undef, opthash(title => 'foo')] ); +testOption( [ qw/-t foo/ ], [undef, opthash(title => 'foo')] ); + done_testing; sub testOption { @@ -51,17 +55,16 @@ sub testOption { } "new_with_options"; # First element of RUN_ARGS will be the script name, which we don't care about 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, $resultarray, "is_deeply comparison"; } # Returns the hash expected when no flags are passed sub opthash { return { - pidfile => undef, - keep_stderr => undef, - detach => undef, - nproc => undef, - manager => undef, + (map { ($_ => undef) } qw(pidfile keep_stderr detach nproc manager)), + title => 'perl-fcgi-pm [TestAppToTestScripts]', @_, }; }