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_kramdown.rb
|
||||||
- test/test_liquid_renderer.rb
|
- test/test_liquid_renderer.rb
|
||||||
- test/test_page.rb
|
- test/test_page.rb
|
||||||
- test/test_rdiscount.rb
|
|
||||||
- test/test_redcarpet.rb
|
- test/test_redcarpet.rb
|
||||||
- test/test_regenerator.rb
|
- test/test_regenerator.rb
|
||||||
- test/test_related_posts.rb
|
- test/test_related_posts.rb
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
require 'helper'
|
require "helper"
|
||||||
|
|
||||||
class TestRdiscount < JekyllUnitTest
|
class TestRdiscount < JekyllUnitTest
|
||||||
|
|
||||||
context "rdiscount" do
|
context "rdiscount" do
|
||||||
setup do
|
setup do
|
||||||
if jruby?
|
if jruby?
|
||||||
|
@ -11,12 +10,10 @@ class TestRdiscount < JekyllUnitTest
|
||||||
end
|
end
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
'markdown' => 'rdiscount',
|
"markdown" => "rdiscount",
|
||||||
'rdiscount' => {
|
"rdiscount" => {
|
||||||
'toc_token' => '{:toc}',
|
"toc_token" => "{:toc}",
|
||||||
'extensions' => [
|
"extensions" => %w(smart generate_toc)
|
||||||
'smart', 'generate_toc'
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -45,7 +42,8 @@ class TestRdiscount < JekyllUnitTest
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
TOC
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue