Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Missed leading / when checking for 404

  • Loading branch information...
commit 27d2ae9578e72fb8981378f944b2dbf12232d063 1 parent 366b577
Ian Norton authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  t/01app.t
View
3  t/01app.t
@@ -7,7 +7,8 @@ use Catalyst::Test 'PresentingPerl::Web';
ok( request('/')->is_success, 'Request should succeed' );
-my $not_found_request = request('this_url_should_not_exist');
+my $not_found_request = request('/this_url_should_not_exist');
+
ok( !$not_found_request->is_success, 'Request for missing page should not succeed' );
ok( $not_found_request->code == 404, 'Request for missing page should 404' );
Please sign in to comment.
Something went wrong with that request. Please try again.