Permalink
Browse files

Added two tests to check index matching with trailing slashes

Signed-off-by: Pedro Melo <melo@simplicidade.org>
  • Loading branch information...
1 parent baa1643 commit 1446b5e06921a093d1f0c78694cbd2e26b20146e @melo committed Jan 7, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 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 {

0 comments on commit 1446b5e

Please sign in to comment.