# coding: UTF-8 require 'test_helper' class HTMLTOCRenderTest < Greenmat::TestCase def setup @renderer = Greenmat::Render::HTML_TOC @markdown = "# A title \n## A __nice__ subtitle\n## Another one \n### A sub-sub-title" end def test_simple_toc_render output = render(@markdown).strip assert output.start_with?("") assert_equal 3, output.scan("