From c2919897e2b079d93892fbc645d8729e2fdef587 Mon Sep 17 00:00:00 2001 From: Josh Cheek Date: Tue, 7 Jun 2011 22:45:41 -0500 Subject: [PATCH] add test that fails when editing pages while using page_file_dir --- test/test_wiki.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/test_wiki.rb b/test/test_wiki.rb index e34cc542..5b9b486c 100644 --- a/test/test_wiki.rb +++ b/test/test_wiki.rb @@ -282,6 +282,11 @@ context "page_file_dir option" do assert_equal "Hi", File.read(File.join(@path, @page_file_dir, "New-Page.md")) assert !File.exist?(File.join(@path, "New-Page.md")) end + + test "edit a page in a sub directory" do + page = @wiki.page('foo') + @wiki.update_page(page, page.name, page.format, 'new contents', commit_details) + end test "a file in page file dir should be found" do assert @wiki.page("foo")