Sha256: 8c2243f6d49c977f16866a24188536c6247d46f3dc238ee825ae2275db506553
Contents?: true
Size: 427 Bytes
Versions: 4
Compression:
Stored size: 427 Bytes
Contents
# frozen_string_literal: true require 'test_helper' class TestTOCOnlyFilter < Minitest::Test include TestHelpers def setup read_html_and_create_parser end def test_injects_toc_container html = @parser.build_toc assert_includes(html, %(<ul id="toc" class="section-nav">)) end def test_does_not_return_content html = @parser.build_toc refute_includes(html, %(<h1>Simple H1</h1>)) end end
Version data entries
4 entries across 4 versions & 1 rubygems