Rubocop fixes for test/test_rdiscount.rb

This commit is contained in:
Brint O'Hearn 2016-05-15 23:36:47 -05:00
parent df7992c626
commit de5d773a6a
2 changed files with 7 additions and 10 deletions

View File

@ -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

View File

@ -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