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