test/test_helper.rb in jekyll-toc-0.7.0.alpha1 vs test/test_helper.rb in jekyll-toc-0.7.0.beta1
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'simplecov'
SimpleCov.start
require 'minitest/autorun'
require 'jekyll'
@@ -10,10 +12,9 @@
<h2>Simple H2</h2>
<h3>Simple H3</h3>
<h4>Simple H4</h4>
<h5>Simple H5</h5>
<h6>Simple H6</h6>
- <h1 class="no_toc">No-toc H1</h1>
HTML
module TestHelpers
def read_html_and_create_parser
@parser = Jekyll::TableOfContents::Parser.new(SIMPLE_HTML)