Rubocop fixes for test/test_rdiscount.rb
This commit is contained in:
parent
df7992c626
commit
de5d773a6a
|
@ -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
|
||||
|
|
|
@ -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
|
|||
|
||||
</p>
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue