Sha256: 4542e259d97644f00795522661c61c410e5a146305747ac83dc7f643bb332ae7
Contents?: true
Size: 381 Bytes
Versions: 10
Compression:
Stored size: 381 Bytes
Contents
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_match(/<ul class="section-nav">/, html) end def test_does_not_return_content html = @parser.build_toc assert_nil(%r{<h1>Simple H1</h1>} =~ html) end end
Version data entries
10 entries across 10 versions & 1 rubygems