require 'simplecov' SimpleCov.start require 'jekyll' require 'minitest/autorun' SIMPLE_HTML = <Simple H1

Simple H2

Simple H3

Simple H4

Simple H5
Simple H6
EOL module TestHelpers def read_html_and_create_parser @parser = Jekyll::TableOfContents::Parser.new(SIMPLE_HTML) assert_match(/Simple H1/, @parser.doc.inner_html) end end