|
|
5887232 |
diff --git a/Rakefile b/Rakefile
|
|
|
5887232 |
index d7278cc..9b3234b 100644
|
|
|
5887232 |
--- a/Rakefile
|
|
|
5887232 |
+++ b/Rakefile
|
|
|
5887232 |
@@ -1,3 +1,4 @@
|
|
|
5887232 |
+require "bundler"
|
|
|
5887232 |
require "bundler/gem_tasks"
|
|
|
5887232 |
|
|
|
1e2951d |
task default: :test
|
|
|
6c92a6b |
diff --git a/test/parser/test_inject_anchors_filter.rb b/test/parser/test_inject_anchors_filter.rb
|
|
|
1ea9684 |
index 160da4c..27cf409 100644
|
|
|
6c92a6b |
--- a/test/parser/test_inject_anchors_filter.rb
|
|
|
6c92a6b |
+++ b/test/parser/test_inject_anchors_filter.rb
|
|
|
5887232 |
@@ -1,6 +1,6 @@
|
|
|
5887232 |
# frozen_string_literal: true
|
|
|
5887232 |
|
|
|
5887232 |
-require 'test_helper'
|
|
|
6c92a6b |
+require_relative '../test_helper'
|
|
|
5887232 |
|
|
|
5887232 |
class TestInjectAnchorsFilter < Minitest::Test
|
|
|
5887232 |
include TestHelpers
|
|
|
a84f7e9 |
diff --git a/test/parser/test_invalid_options.rb b/test/parser/test_invalid_options.rb
|
|
|
a84f7e9 |
index db2ad38..8c83fff 100644
|
|
|
a84f7e9 |
--- a/test/parser/test_invalid_options.rb
|
|
|
a84f7e9 |
+++ b/test/parser/test_invalid_options.rb
|
|
|
5887232 |
@@ -1,6 +1,6 @@
|
|
|
5887232 |
# frozen_string_literal: true
|
|
|
5887232 |
|
|
|
5887232 |
-require 'test_helper'
|
|
|
6c92a6b |
+require_relative '../test_helper'
|
|
|
5887232 |
|
|
|
a84f7e9 |
class TestInvalidOptions < Minitest::Test
|
|
|
5887232 |
BASE_HTML = 'h1'
|
|
|
1ea9684 |
diff --git a/test/parser/test_ordered_list.rb b/test/parser/test_ordered_list.rb
|
|
|
1ea9684 |
index c360c87..c2b6785 100644
|
|
|
1ea9684 |
--- a/test/parser/test_ordered_list.rb
|
|
|
1ea9684 |
+++ b/test/parser/test_ordered_list.rb
|
|
|
1ea9684 |
@@ -1,6 +1,6 @@
|
|
|
1ea9684 |
# frozen_string_literal: true
|
|
|
1ea9684 |
|
|
|
1ea9684 |
-require 'test_helper'
|
|
|
1ea9684 |
+require_relative '../test_helper'
|
|
|
1ea9684 |
|
|
|
1ea9684 |
class TestOrderedList < Minitest::Test
|
|
|
1ea9684 |
include TestHelpers
|
|
|
6c92a6b |
diff --git a/test/parser/test_toc_filter.rb b/test/parser/test_toc_filter.rb
|
|
|
6c92a6b |
index a2ddd59..ec441ab 100644
|
|
|
6c92a6b |
--- a/test/parser/test_toc_filter.rb
|
|
|
6c92a6b |
+++ b/test/parser/test_toc_filter.rb
|
|
|
5887232 |
@@ -1,6 +1,6 @@
|
|
|
5887232 |
# frozen_string_literal: true
|
|
|
5887232 |
|
|
|
5887232 |
-require 'test_helper'
|
|
|
6c92a6b |
+require_relative '../test_helper'
|
|
|
5887232 |
|
|
|
5887232 |
class TestTOCFilter < Minitest::Test
|
|
|
5887232 |
include TestHelpers
|
|
|
6c92a6b |
diff --git a/test/parser/test_toc_only_filter.rb b/test/parser/test_toc_only_filter.rb
|
|
|
1ea9684 |
index 2623a85..8a88291 100644
|
|
|
6c92a6b |
--- a/test/parser/test_toc_only_filter.rb
|
|
|
6c92a6b |
+++ b/test/parser/test_toc_only_filter.rb
|
|
|
5887232 |
@@ -1,6 +1,6 @@
|
|
|
5887232 |
# frozen_string_literal: true
|
|
|
5887232 |
|
|
|
5887232 |
-require 'test_helper'
|
|
|
6c92a6b |
+require_relative '../test_helper'
|
|
|
5887232 |
|
|
|
5887232 |
class TestTOCOnlyFilter < Minitest::Test
|
|
|
5887232 |
include TestHelpers
|
|
|
6c92a6b |
diff --git a/test/parser/test_various_toc_html.rb b/test/parser/test_various_toc_html.rb
|
|
|
a84f7e9 |
index 26e4ccf..008f01e 100644
|
|
|
6c92a6b |
--- a/test/parser/test_various_toc_html.rb
|
|
|
6c92a6b |
+++ b/test/parser/test_various_toc_html.rb
|
|
|
5887232 |
@@ -1,6 +1,6 @@
|
|
|
5887232 |
# frozen_string_literal: true
|
|
|
5887232 |
|
|
|
5887232 |
-require 'test_helper'
|
|
|
6c92a6b |
+require_relative '../test_helper'
|
|
|
5887232 |
|
|
|
5887232 |
class TestVariousTocHtml < Minitest::Test
|
|
|
a84f7e9 |
TEST_HTML = <<~HTML
|
|
|
6c92a6b |
diff --git a/test/test_helper.rb b/test/test_helper.rb
|
|
|
1ea9684 |
index 3faa4eb..f890b3e 100644
|
|
|
6c92a6b |
--- a/test/test_helper.rb
|
|
|
6c92a6b |
+++ b/test/test_helper.rb
|
|
|
6c92a6b |
@@ -1,11 +1,6 @@
|
|
|
6c92a6b |
# frozen_string_literal: true
|
|
|
6c92a6b |
|
|
|
6c92a6b |
-require 'simplecov'
|
|
|
6c92a6b |
-SimpleCov.start
|
|
|
6c92a6b |
-
|
|
|
6c92a6b |
require 'minitest/autorun'
|
|
|
8a0cf42 |
-require 'minitest/reporters'
|
|
|
6c92a6b |
-Minitest::Reporters.use!
|
|
|
6c92a6b |
|
|
|
6c92a6b |
require 'jekyll'
|
|
|
6c92a6b |
require 'jekyll-toc'
|
|
|
6c92a6b |
diff --git a/test/test_jekyll-toc.rb b/test/test_jekyll-toc.rb
|
|
|
ecf0ee8 |
index 34fed46..ea1dd8e 100644
|
|
|
6c92a6b |
--- a/test/test_jekyll-toc.rb
|
|
|
6c92a6b |
+++ b/test/test_jekyll-toc.rb
|
|
|
6c92a6b |
@@ -1,6 +1,6 @@
|
|
|
6c92a6b |
# frozen_string_literal: true
|
|
|
6c92a6b |
|
|
|
6c92a6b |
-require 'test_helper'
|
|
|
6c92a6b |
+require_relative 'test_helper'
|
|
|
6c92a6b |
|
|
|
6c92a6b |
class TestTableOfContentsFilter < Minitest::Test
|
|
|
6c92a6b |
include Jekyll::TableOfContentsFilter
|
|
|
6c92a6b |
diff --git a/test/test_kramdown_list.rb b/test/test_kramdown_list.rb
|
|
|
6c92a6b |
index 60019aa..32fe36c 100644
|
|
|
6c92a6b |
--- a/test/test_kramdown_list.rb
|
|
|
6c92a6b |
+++ b/test/test_kramdown_list.rb
|
|
|
6c92a6b |
@@ -1,6 +1,6 @@
|
|
|
6c92a6b |
# frozen_string_literal: true
|
|
|
6c92a6b |
|
|
|
6c92a6b |
-require 'test_helper'
|
|
|
6c92a6b |
+require_relative 'test_helper'
|
|
|
6c92a6b |
|
|
|
6c92a6b |
class TestKramdownList < Minitest::Test
|
|
|
6c92a6b |
# NOTE: kramdown automatically injects `id` attribute
|
|
|
a84f7e9 |
diff --git a/test/test_toc_tag.rb b/test/test_toc_tag.rb
|
|
|
1ea9684 |
index 6749875..5f57627 100644
|
|
|
a84f7e9 |
--- a/test/test_toc_tag.rb
|
|
|
a84f7e9 |
+++ b/test/test_toc_tag.rb
|
|
|
a84f7e9 |
@@ -1,6 +1,6 @@
|
|
|
a84f7e9 |
# frozen_string_literal: true
|
|
|
a84f7e9 |
|
|
|
a84f7e9 |
-require 'test_helper'
|
|
|
a84f7e9 |
+require_relative 'test_helper'
|
|
|
a84f7e9 |
|
|
|
a84f7e9 |
class TestTableOfContentsTag < Minitest::Test
|
|
|
a84f7e9 |
include Liquid
|