Fix big bug in test
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Script / Test.pm
CommitLineData
0ba6e8aa 1package Catalyst::Script::Test;
accb0640 2use Moose;
95389116 3use Catalyst::Test ();
d9a32f71 4use namespace::autoclean;
451b2a44 5
d3082fac 6with 'Catalyst::ScriptRole';
451b2a44 7
0e4038c6 8__PACKAGE__->meta->get_attribute('help')->cmd_aliases('h');
b1320d7d 9
451b2a44 10sub run {
11 my $self = shift;
12
e25affcb 13 Catalyst::Test->import($self->application_name);
57dc50b0 14
95389116 15 print request($ARGV[0])->content . "\n";
57dc50b0 16
451b2a44 17}
18
73e4f0f1 19
d6e8e664 20__PACKAGE__->meta->make_immutable;
d3082fac 21
22=head1 NAME
23
24Catalyst::Script::Test - Test Catalyst application on the command line
25
26=head1 SYNOPSIS
27
28See L<Catalyst>.
29
30=head1 DESCRIPTION
31
32FIXME
33
34=head1 AUTHORS
35
36Catalyst Contributors, see Catalyst.pm
37
38=head1 COPYRIGHT
39
40This library is free software. You can redistribute it and/or modify it under
41the same terms as Perl itself.
42
43=cut