3 t/integration/feature_invalid.t - integration tests for invalid feature URLs
19 BEGIN { $ENV{SGN_SKIP_CGI} = 1 }
20 use SGN::Test::WWW::Mechanize;
22 my $mech = SGN::Test::WWW::Mechanize->new;
24 $mech->get("/feature/JUNK/details");
25 is($mech->status, 404, 'status is 404');
26 $mech->content_contains("Feature not found");
28 $mech->get("/feature/-1/details");
29 is($mech->status, 400, 'status is 400');
30 $mech->content_contains("positive integer");
32 $mech->get("/feature/JUNK/details");
33 is($mech->status, 404, 'status is 404');