Skip to content

Commit

Permalink
add ErrorDocument and HTTPExceptions to new site skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
jonswar committed Oct 7, 2012
1 parent 5b36e41 commit 33ec3ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Changes
Expand Up @@ -4,6 +4,9 @@ Revision history for Poet


0.13 Aug 15, 2012 0.13 Aug 15, 2012


* Improvements
- Add standard error pages and 500 error response for errors in live mode

* Fixes * Fixes
- Retain response object ($m->res) when creating subrequests via $m->go and $m->visit - Retain response object ($m->res) when creating subrequests via $m->go and $m->visit


Expand Down
4 changes: 2 additions & 2 deletions lib/Poet/t/PSGIHandler.pm
Expand Up @@ -99,8 +99,8 @@ sub test_not_found : Tests {
my $self = shift; my $self = shift;
my $mech = $self->mech(); my $mech = $self->mech();
$mech->get("/does/not/exist"); $mech->get("/does/not/exist");
is( $mech->status, 404, "status 404" ); is( $mech->status, 404, "status 404" );
is( $mech->content, '', "blank content" ); like( $mech->content, qr/Not found/, "default not found page" );
} }


sub test_args : Tests { sub test_args : Tests {
Expand Down

0 comments on commit 33ec3ab

Please sign in to comment.