diff --git a/.rubocop.yml b/.rubocop.yml index 4fb11302..fcb1726e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -77,7 +77,6 @@ AllCops: - test/test_kramdown.rb - test/test_liquid_renderer.rb - test/test_page.rb - - test/test_rdiscount.rb - test/test_redcarpet.rb - test/test_regenerator.rb - test/test_related_posts.rb diff --git a/test/test_rdiscount.rb b/test/test_rdiscount.rb index 96446404..889f9659 100644 --- a/test/test_rdiscount.rb +++ b/test/test_rdiscount.rb @@ -1,7 +1,6 @@ -require 'helper' +require "helper" class TestRdiscount < JekyllUnitTest - context "rdiscount" do setup do if jruby? @@ -11,12 +10,10 @@ class TestRdiscount < JekyllUnitTest end config = { - 'markdown' => 'rdiscount', - 'rdiscount' => { - 'toc_token' => '{:toc}', - 'extensions' => [ - 'smart', 'generate_toc' - ], + "markdown" => "rdiscount", + "rdiscount" => { + "toc_token" => "{:toc}", + "extensions" => %w(smart generate_toc) } } @@ -45,7 +42,8 @@ class TestRdiscount < JekyllUnitTest

TOC - assert_equal toc.strip, @markdown.convert("# Header 1\n\n## Header 2\n\n{:toc}").strip + assert_equal toc.strip, + @markdown.convert("# Header 1\n\n## Header 2\n\n{:toc}").strip end end end