Fix metadata tests
This commit is contained in:
@@ -198,6 +198,7 @@ context "Wiki page writing" do
|
||||
assert_equal cd[:email], @wiki.repo.commits.first.author.email
|
||||
end
|
||||
|
||||
if $METADATA
|
||||
test "page title override with metadata" do
|
||||
@wiki.write_page("Gollum", :markdown, "<!-- --- title: Over -->", commit_details)
|
||||
|
||||
@@ -205,6 +206,7 @@ context "Wiki page writing" do
|
||||
|
||||
assert_equal 'Over', page.url_path_title
|
||||
end
|
||||
end
|
||||
|
||||
test "update page with format change" do
|
||||
@wiki.write_page("Gollum", :markdown, "# Gollum", commit_details)
|
||||
|
||||
Reference in New Issue
Block a user