Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added two tests to check index matching with trailing slashes

Signed-off-by: Pedro Melo <melo@simplicidade.org>
  • Loading branch information...
commit 1446b5e06921a093d1f0c78694cbd2e26b20146e 1 parent baa1643
@melo authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/Mason/t/ResolveURI.pm
View
2  lib/Mason/t/ResolveURI.pm
@@ -86,6 +86,8 @@ sub test_resolve : Tests {
$try->( $run_path, ['/foo/bar/baz/index'], '/foo/bar/baz/index', '' );
$try->( $run_path, ['/foo/bar/baz/index2'], '/foo/bar/baz/index2', '' );
$try->( $run_path, [ '/foo/bar/baz/index2', '/foo/bar/baz/index' ], '/foo/bar/baz/index', '' );
+ $try->( '/foo', [ '/foo/index' ], '/foo/index', '' );
+ $try->( '/foo/', [ '/foo/index' ], '/foo/index', '' );
}
sub test_decline : Tests {
Please sign in to comment.
Something went wrong with that request. Please try again.