Permalink
Browse files

add ErrorDocument and HTTPExceptions to new site skeleton

  • Loading branch information...
jonswar committed Oct 7, 2012
1 parent 5b36e41 commit 33ec3abe2a531d458885696b0bffc2de2a8876b2
Showing with 5 additions and 2 deletions.
  1. +3 −0 Changes
  2. +2 −2 lib/Poet/t/PSGIHandler.pm
View
@@ -4,6 +4,9 @@ Revision history for Poet
0.13 Aug 15, 2012
+* Improvements
+ - Add standard error pages and 500 error response for errors in live mode
+
* Fixes
- Retain response object ($m->res) when creating subrequests via $m->go and $m->visit
@@ -99,8 +99,8 @@ sub test_not_found : Tests {
my $self = shift;
my $mech = $self->mech();
$mech->get("/does/not/exist");
- is( $mech->status, 404, "status 404" );
- is( $mech->content, '', "blank content" );
+ is( $mech->status, 404, "status 404" );
+ like( $mech->content, qr/Not found/, "default not found page" );
}
sub test_args : Tests {

0 comments on commit 33ec3ab

Please sign in to comment.