From 1f355803624d0dccc0b8d5ac3f1fbe97ff6a5b5b Mon Sep 17 00:00:00 2001 From: Dawa Ometto Date: Sat, 11 Jan 2025 20:17:58 +0100 Subject: [PATCH] Add rudimentary test to assist with debugging --- test/test_wiki.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_wiki.rb b/test/test_wiki.rb index bb6b8512..6b7a5df6 100644 --- a/test/test_wiki.rb +++ b/test/test_wiki.rb @@ -48,6 +48,11 @@ assert_equal commits, @wiki.log(:page_num => 2).map(&:id) end + test "list specific directory in the wiki" do + puts @wiki.path_list('Mordor').inspect + assert false + end + test "list files and pages" do contents = @wiki.tree_list pages = contents.select {|x| x.is_a?(::Gollum::Page)}