Fix tests.
This commit is contained in:
+3
-3
@@ -104,12 +104,12 @@ context "Page" do
|
|||||||
assert_equal 'My Precious', page.title
|
assert_equal 'My Precious', page.title
|
||||||
end
|
end
|
||||||
|
|
||||||
test "title from h1 with normal contents" do
|
test "title from filename with normal contents" do
|
||||||
page = @wiki.page('Home')
|
page = @wiki.page('Home')
|
||||||
assert_equal "The LOTR Wiki", page.title
|
assert_equal "Home", page.title
|
||||||
end
|
end
|
||||||
|
|
||||||
test "title from h1 with html contents" do
|
test "title from filename with html contents" do
|
||||||
page = @wiki.page('Eye Of Sauron')
|
page = @wiki.page('Eye Of Sauron')
|
||||||
assert_equal "Eye Of Sauron", page.title
|
assert_equal "Eye Of Sauron", page.title
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user