Skip to content

Commit

Permalink
Test for author 404s on feeds.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Nov 19, 2016
1 parent 131c747 commit fde1079
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/controller/feed.t
Expand Up @@ -105,6 +105,11 @@ test_psgi app, sub {
);

test_redirect( $cb, 'oalders' );

subtest '404' => sub {
my $res = $cb->( GET '/feed/author/XXX343wi^^^' );
is( $res->code, 404, '404 when author does not exist' );
};
};

sub test_redirect {
Expand Down

0 comments on commit fde1079

Please sign in to comment.