diff --git a/test/wiki_cloth_test.rb b/test/wiki_cloth_test.rb index 6bb2414..14dbdec 100644 --- a/test/wiki_cloth_test.rb +++ b/test/wiki_cloth_test.rb @@ -396,7 +396,7 @@ class WikiClothTest < ActiveSupport::TestCase test "empty item in toc" do wiki = WikiCloth::WikiCloth.new({:data => "__TOC__\n=A="}) data = wiki.render - assert data.include?("
Table of Contents
") + assert data.include?("

Table of Contents

") end test "pre at beginning" do @@ -408,12 +408,12 @@ class WikiClothTest < ActiveSupport::TestCase test "toc declared as list" do wiki = WikiCloth::WikiCloth.new({:data => "__TOC__\n=A=\n==B==\n===C==="}) data = wiki.render - assert data.include?("
Table of Contents
") + assert data.include?("

Table of Contents

") end test "toc numbered" do wiki = WikiCloth::WikiCloth.new({:data => "=A=\n=B=\n==C==\n==D==\n===E===\n===F===\n====G====\n====H====\n==I==\n=J=\n=K=\n===L===\n===M===\n====N====\n====O===="}) data = wiki.render(:noedit => true, :toc_numbered => true) - assert data.include?("
Table of Contents
") + assert data.include?("

Table of Contents

") end end