Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add ErrorDocument and HTTPExceptions to new site skeleton

  • Loading branch information...
commit 33ec3abe2a531d458885696b0bffc2de2a8876b2 1 parent 5b36e41
@jonswar authored
Showing with 5 additions and 2 deletions.
  1. +3 −0  Changes
  2. +2 −2 lib/Poet/t/PSGIHandler.pm
View
3  Changes
@@ -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
View
4 lib/Poet/t/PSGIHandler.pm
@@ -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 {
Please sign in to comment.
Something went wrong with that request. Please try again.