stop using Moo as a test package
[catagits/Catalyst-Runtime.git] / t / aggregate / unit_core_script_cgi.t
CommitLineData
4f0612fd 1use strict;
2use warnings;
3
4use FindBin qw/$Bin/;
5use lib "$Bin/../lib";
6
7use Test::More;
2a56ace9 8use Test::Fatal;
4f0612fd 9
10use Catalyst::Script::CGI;
11
12local @ARGV;
2a56ace9 13is exception {
4f0612fd 14 Catalyst::Script::CGI->new_with_options(application_name => 'TestAppToTestScripts')->run;
2a56ace9 15}, undef, "new_with_options";
4f0612fd 16shift @TestAppToTestScripts::RUN_ARGS;
b17bc48c 17my $server = pop @TestAppToTestScripts::RUN_ARGS;
18like ref($server), qr/^Plack::Handler/, 'Is a Plack::Handler';
aee7cdcc 19is ref(delete($TestAppToTestScripts::RUN_ARGS[0]->{argv})), 'ARRAY';
20is ref(delete($TestAppToTestScripts::RUN_ARGS[0]->{extra_argv})), 'ARRAY';
21is_deeply \@TestAppToTestScripts::RUN_ARGS, [{}], "no args";
4f0612fd 22
23done_testing;