Permalink
Browse files

Fix unit test

  • Loading branch information...
1 parent ba4e794 commit 1d7b9adfecf52780ba7ff9bb3bc93e0507934af9 @jshirley committed Apr 6, 2012
Showing with 5 additions and 5 deletions.
  1. +2 −0 Changes
  2. +2 −2 README.mkdn
  3. +1 −3 t/simple.t
View
@@ -1,6 +1,8 @@
Revision history for Plack-Middleware-ComboLoader
{{$NEXT}}
+ * Remove http_throw which didn't make sense in Middleware. Refactor of
+ response code.
0.02 Dec 30 2011
* Fix an issue where max_age => 0 didn't actually set the max-age to 0
View
@@ -4,7 +4,7 @@ Plack::Middleware::ComboLoader - Handle combination loading and processing of on
# VERSION
-version 0.02
+version 0.03
# SYNOPSIS
@@ -115,7 +115,7 @@ J. Shirley <j@shirley.im>
# COPYRIGHT AND LICENSE
-This software is copyright (c) 2011 by Infinity Interactive, Inc.
+This software is copyright (c) 2012 by Infinity Interactive, Inc.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
View
@@ -35,9 +35,7 @@ test_psgi $loader => sub {
subtest "missing files" => sub {
my $res = $server->(GET '/t1?foo.js&missing.js');
- # Don't rely on HTTPExceptiosn in the unit test, so this will come out
- # as a 500 instead of a 400.
- is($res->code, 500, 'bad request');
+ is($res->code, 400, 'bad request');
is($res->content, q{400 Bad Request Invalid resource requested: `missing.js` is not available.}, 'right error message');
};

0 comments on commit 1d7b9ad

Please sign in to comment.