add Page#format

This commit is contained in:
Tom Preston-Werner
2010-04-09 23:02:14 -06:00
parent badff21cc4
commit 8132f4c602
2 changed files with 29 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@ context "Page" do
page = @wiki.formatted_page('Bilbo Baggins')
assert_equal Gollum::Page, page.class
assert page.data =~ /^# Bilbo Baggins\n\nBilbo Baggins/
assert_equal :markdown, page.format
end
test "no page match" do