diff --git a/features/markdown.feature b/features/markdown.feature index c76b0611..778fc5d2 100644 --- a/features/markdown.feature +++ b/features/markdown.feature @@ -13,8 +13,8 @@ Feature: Markdown When I run jekyll Then the _site directory should exist And I should see "Index" in "_site/index.html" - And I should see "
First paragraph with link ref.
", @extracted_excerpt.content + assert_equal "First paragraph with link ref.
\n\n", @extracted_excerpt.content end should "link properly" do diff --git a/test/test_filters.rb b/test/test_filters.rb index 4b5c8212..7f71c41b 100644 --- a/test/test_filters.rb +++ b/test/test_filters.rb @@ -28,7 +28,7 @@ class TestFilters < Test::Unit::TestCase end should "markdownify with simple string" do - assert_equal "something really simple
", @filter.markdownify("something **really** simple") + assert_equal "something really simple
\n", @filter.markdownify("something **really** simple") end should "convert array to sentence string with no args" do diff --git a/test/test_post.rb b/test/test_post.rb index c159afe8..528004cd 100644 --- a/test/test_post.rb +++ b/test/test_post.rb @@ -312,7 +312,7 @@ class TestPost < Test::Unit::TestCase end should "return rendered HTML" do - assert_equal "First paragraph with link ref.
", + assert_equal "First paragraph with link ref.
\n\n", @post.excerpt end @@ -532,7 +532,7 @@ class TestPost < Test::Unit::TestCase post.site.source = File.join(File.dirname(__FILE__), 'source') do_render(post) - assert_equal "<<<Tom Preston-Werner github.com/mojombo
\n\nThis is cool
>>>", post.output + assert_equal "<<<Tom Preston-Werner\ngithub.com/mojombo
\n\nThis is cool
\n >>>", post.output end should "render date specified in front matter properly" do diff --git a/test/test_tags.rb b/test/test_tags.rb index efc108bd..4874fda0 100644 --- a/test/test_tags.rb +++ b/test/test_tags.rb @@ -54,7 +54,7 @@ CONTENT end context "initialized tag" do - should "work" do + should "set the correct options" do tag = Jekyll::Tags::HighlightBlock.new('highlight', 'ruby ', ["test", "{% endhighlight %}", "\n"]) assert_equal({}, tag.instance_variable_get(:@options)) @@ -85,11 +85,11 @@ CONTENT end should "render markdown with pygments" do - assert_match %{test\n
}, @result
+ assert_match %{test\n
}, @result
end
should "render markdown with pygments with line numbers" do
- assert_match %{1 test\n
}, @result
+ assert_match %{1 test\n
}, @result
end
end
@@ -99,7 +99,7 @@ CONTENT
end
should "not embed the file" do
- assert_match %{./jekyll.gemspec\n
}, @result
+ assert_match %{./jekyll.gemspec\n
}, @result
end
end
@@ -109,7 +109,7 @@ CONTENT
end
should "render markdown with pygments line handling" do
- assert_match %{Æ\n
}, @result
+ assert_match %{Æ\n
}, @result
end
end
@@ -268,7 +268,7 @@ CONTENT
end
should "write script tag" do
- assert_match "", @result
+ assert_match "", @result
end
end
@@ -288,7 +288,7 @@ CONTENT
end
should "write script tag with specific file in gist" do
- assert_match "", @result
+ assert_match "", @result
end
end
@@ -324,7 +324,7 @@ CONTENT
end
should "write script tag with specific file in gist" do
- assert_match "", @result
+ assert_match "", @result
end
end
@@ -378,11 +378,11 @@ CONTENT
end
should "correctly output include variable" do
- assert_match "value", @result.strip
+ assert_match "value", @result.strip
end
should "ignore parameters if unused" do
- assert_match "Tom Preston-Werner github.com/mojombo
\n", @result + assert_match "Tom Preston-Werner\ngithub.com/mojombo
\n", @result end end @@ -430,7 +430,7 @@ CONTENT end should "not include previously used parameters" do - assert_match "", @result + assert_match "", @result end end @@ -447,7 +447,7 @@ CONTENT end should "include file with empty parameters" do - assert_match "", @result + assert_match "", @result end end @@ -464,7 +464,7 @@ CONTENT end should "include file with empty parameters within if statement" do - assert_match "", @result + assert_match "", @result end end @@ -477,6 +477,7 @@ puts "Hello world" ``` CONTENT create_post(content, { + 'markdown' => 'maruku', 'maruku' => {'fenced_code_blocks' => true}} ) end