Update tests to XHTML

This commit is contained in:
bootstraponline
2012-10-14 13:07:18 -06:00
parent 44b0d2fcfc
commit a2b3ddf931
4 changed files with 33 additions and 33 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ context "Wiki page previewing" do
test "preview_page" do
page = @wiki.preview_page("Test", "# Bilbo", :markdown)
assert_equal "# Bilbo", page.raw_data
assert_equal %Q{<h1>Bilbo<a class="anchor" id="Bilbo" href="#Bilbo"></a>\n</h1>}, page.formatted_data
assert_equal %Q{<h1>Bilbo<a class=\"anchor\" id=\"Bilbo\" href=\"#Bilbo\"></a></h1>}, page.formatted_data
assert_equal "Test.md", page.filename
assert_equal "Test", page.name
end