Permalink
Browse files

add test that fails when editing pages while using page_file_dir

  • Loading branch information...
1 parent 23508d3 commit c2919897e2b079d93892fbc645d8729e2fdef587 @JoshCheek JoshCheek committed Jun 8, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/test_wiki.rb
View
@@ -282,6 +282,11 @@
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")

0 comments on commit c291989

Please sign in to comment.