aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-25 12:16:09 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-25 12:16:09 -0400
commitacf94414e3526686701cc93dabcec1519149678a (patch)
tree0515f8bf95cc5b968c0ae4edfeda40114d9ca4da /t
parent256a118e88e718a53253217696aeaa8b6548303d (diff)
downloadikiwiki-acf94414e3526686701cc93dabcec1519149678a.tar
ikiwiki-acf94414e3526686701cc93dabcec1519149678a.tar.gz
expose a bug in bzr renameing code
Diffstat (limited to 't')
-rwxr-xr-xt/bazaar.t15
1 files changed, 12 insertions, 3 deletions
diff --git a/t/bazaar.t b/t/bazaar.t
index 019f05ff3..675a143b5 100755
--- a/t/bazaar.t
+++ b/t/bazaar.t
@@ -12,7 +12,7 @@ BEGIN {
}
}
}
-use Test::More tests => 13;
+use Test::More tests => 16;
BEGIN { use_ok("IkiWiki"); }
@@ -69,7 +69,16 @@ IkiWiki::rcs_commit_staged("Added the 4th page", "moo", "Joe User");
is($#changes, 2);
is($changes[0]{pages}[0]{"page"}, "test4.mdwn");
-IkiWiki::rcs_remove("test4.mdwn");
-IkiWiki::rcs_commit_staged("Remove the 4th page", "moo", "Joe User");
+ok(mkdir($config{srcdir}."/newdir"));
+IkiWiki::rcs_rename("test4.mdwn", "newdir/test5.mdwn");
+IkiWiki::rcs_commit_staged("Added the 5th page", "moo", "Joe User");
+
+@changes = IkiWiki::rcs_recentchanges(4);
+
+is($#changes, 3);
+is($changes[0]{pages}[0]{"page"}, "newdir/test5.mdwn");
+
+IkiWiki::rcs_remove("newdir/test5.mdwn");
+IkiWiki::rcs_commit_staged("Remove the 5th page", "moo", "Joe User");
system "rm -rf $dir";