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

Version Path
jekyll-toc-0.7.0.alpha1 test/test_toc_only_filter.rb
jekyll-toc-0.6.0 test/test_toc_only_filter.rb
jekyll-toc-0.5.2 test/test_toc_only_filter.rb
jekyll-toc-0.5.1 test/test_toc_only_filter.rb
jekyll-toc-0.5.0 test/test_toc_only_filter.rb
jekyll-toc-0.5.0.rc test/test_toc_only_filter.rb
jekyll-toc-0.4.0 test/test_toc_only_filter.rb
jekyll-toc-0.4.0.rc2 test/test_toc_only_filter.rb
jekyll-toc-0.4.0.rc test/test_toc_only_filter.rb
jekyll-toc-0.3.0 test/test_toc_only_filter.rb