summaryrefslogtreecommitdiffstats
path: root/debian/perl-framework/t/modules/dir.t
diff options
context:
space:
mode:
Diffstat (limited to 'debian/perl-framework/t/modules/dir.t')
-rw-r--r--debian/perl-framework/t/modules/dir.t17
1 files changed, 16 insertions, 1 deletions
diff --git a/debian/perl-framework/t/modules/dir.t b/debian/perl-framework/t/modules/dir.t
index 1b93423..51e632e 100644
--- a/debian/perl-framework/t/modules/dir.t
+++ b/debian/perl-framework/t/modules/dir.t
@@ -20,7 +20,7 @@ sub my_chomp {
$actual =~ s/[\r\n]+$//s;
}
-plan tests => @bad_index * @index * 5 + @bad_index + 5, need_module 'dir';
+plan tests => @bad_index * @index * 5 + @bad_index + 5 + 3, need_module 'dir';
foreach my $bad_index (@bad_index) {
@@ -91,6 +91,21 @@ $actual = GET_BODY $url;
my_chomp();
ok ($actual eq $expected);
+# DirectorySlash stuff
+my $res = GET "/modules/dir", redirect_ok => 0;
+ok ($res->code == 301);
+$res = GET "/modules/dir/htaccess", redirect_ok => 0;
+ok ($res->code == 403);
+
+if (!have_min_apache_version('2.5.1')) {
+ skip("missing DirectorySlash NotFound");
+}
+else {
+ $res = GET "/modules/dir/htaccess/sub", redirect_ok => 0;
+ ok ($res->code == 404);
+}
+
+
sub write_htaccess {
my $string = shift;