Skip to content

Commit

Permalink
Expect a 404 for a non-existent page, not a 500.
Browse files Browse the repository at this point in the history
For some reason, t/03_route_handler/18_auto_page.t expected a non-existent page
to return a 500 error rather than a 404, which seems stupid and wrong.

Unless I'm missing something, this test was merely expecting retarded behaviour
which was previously present, and needs to be updated for now-sane behaviour.
  • Loading branch information
bigpresh committed Feb 16, 2012
1 parent a268865 commit 46c3ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/03_route_handler/18_auto_page.t
Expand Up @@ -23,5 +23,5 @@ use Dancer::Test;
response_status_is [GET => '/hello'] => 200, "response found for /hello";
response_content_is [GET => '/hello'] => "Hello\n", "content looks good";

response_status_is [GET => '/falsepage'] => 500;
response_status_is [GET => '/falsepage'] => 404;
response_content_like [GET => '/error'] => qr/ERROR: Dancer\n/, "error page looks OK";

0 comments on commit 46c3ca4

Please sign in to comment.