diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-09-13 19:40:42 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-09-13 19:40:42 -0400 |
commit | b94c1ccd552f70b8ecce8f414563b4c6b6385e08 (patch) | |
tree | 0dd1017fbde3462b79b27248a138c94a4fe44cb4 | |
parent | 87c3370e04fdcecb6f296f3e5e0f6b7414e8fa3e (diff) | |
download | ikiwiki-b94c1ccd552f70b8ecce8f414563b4c6b6385e08.tar ikiwiki-b94c1ccd552f70b8ecce8f414563b4c6b6385e08.tar.gz |
fix CVS prune test
The regexp only matches things inside the CVS directory, not
just "CVS" by itself. I changed the test to not test that it will be
pruned.
-rwxr-xr-x | t/file_pruned.t | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/t/file_pruned.t b/t/file_pruned.t index a05ad548f..00542d580 100755 --- a/t/file_pruned.t +++ b/t/file_pruned.t @@ -1,7 +1,7 @@ #!/usr/bin/perl use warnings; use strict; -use Test::More tests => 27; +use Test::More tests => 26; BEGIN { use_ok("IkiWiki"); } @@ -9,8 +9,7 @@ BEGIN { use_ok("IkiWiki"); } ok(IkiWiki::file_pruned("src/.ikiwiki/", "src")); ok(IkiWiki::file_pruned("src/.ikiwiki/index", "src")); -ok(IkiWiki::file_pruned("src/CVS", "src")); -ok(IkiWiki::file_pruned("src/subdir/CVS", "src")); +ok(IkiWiki::file_pruned("src/CVS/foo", "src")); ok(IkiWiki::file_pruned("src/subdir/CVS/foo", "src")); ok(IkiWiki::file_pruned("src/.svn", "src")); ok(IkiWiki::file_pruned("src/subdir/.svn", "src")); |