11 # make sure testapp works
14 # a live test against TestApp, the test application
15 use Test::WWW::Mechanize::Catalyst 'TestApp';
16 my $mech = Test::WWW::Mechanize::Catalyst->new;
17 $mech->get_ok('http://localhost/', 'get main page');
18 $mech->content_like(qr/it works/i, 'see if it has our text');
20 foreach my $script_name qw( mt-add-notify.cgi
33 # mt-config.cgi intentionally left out
34 my $mech = Test::WWW::Mechanize::Catalyst->new;
35 $mech->get_ok('http://localhost/mt/'.$script_name, 'get '.$script_name.' cgi');
36 $mech->content_like(qr/This is $script_name/, 'cgi script properly executed through Catalyst');
39 # TODO: test for mt-check.cgi to only work in $c->debug mode.