test/test_post.rb in jekyll-0.5.5 vs test/test_post.rb in jekyll-0.5.6

- old
+ new

@@ -75,14 +75,26 @@ end should "read yaml front-matter" do @post.read_yaml(@source, @real_file) assert_equal({"title" => "Test title", "layout" => "post", "tag" => "Ruby"}, @post.data) - assert_equal "\r\nThis is the content", @post.content + assert_equal "This is the content", @post.content end end + context "with embedded triple dash" do + setup do + @real_file = "2010-01-08-triple-dash.markdown" + end + should "consume the embedded dashes" do + @post.read_yaml(@source, @real_file) + + assert_equal({"title" => "Foo --- Bar"}, @post.data) + assert_equal "Triple the fun!", @post.content + end + end + context "with site wide permalink" do setup do @post.categories = [] end @@ -161,10 +173,10 @@ should "read yaml front-matter" do @post.read_yaml(@source, @real_file) assert_equal({"title" => "Foo Bar", "layout" => "default"}, @post.data) - assert_equal "\nh1. {{ page.title }}\n\nBest *post* ever", @post.content + assert_equal "h1. {{ page.title }}\n\nBest *post* ever", @post.content end should "transform textile" do @post.process(@real_file) @post.read_yaml(@source, @real_file)