Added page.meta_data to tests

This commit is contained in:
Daniel Kimsey
2012-11-09 18:25:33 -05:00
parent cc11cb866c
commit 2783257f06
10 changed files with 15 additions and 3 deletions
+7
View File
@@ -227,5 +227,12 @@ context "within a sub-directory" do
assert page.header.raw_data =~ /^Hobbits/
assert page.footer.raw_data =~ /^Lord of the Rings/
end
test "get metadata on page" do
page = @wiki.page('Elrond')
assert_equal Gollum::Page, page.class
assert_equal 'elf', page.meta_data['race']
end
end