Skip to content

Commit

Permalink
add markdown test
Browse files Browse the repository at this point in the history
  • Loading branch information
mojombo committed Dec 15, 2008
1 parent bcb67ec commit fbdcf46
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
File renamed without changes.
8 changes: 8 additions & 0 deletions test/source/_posts/2008-12-13-include.markdown
@@ -0,0 +1,8 @@
---
layout: default
title: Include
---

{% include sig.markdown %}

This _is_ cool
6 changes: 0 additions & 6 deletions test/source/_posts/2008-12-13-include.textile

This file was deleted.

4 changes: 2 additions & 2 deletions test/test_post.rb
Expand Up @@ -86,10 +86,10 @@ def test_data

def test_include
Jekyll.source = File.join(File.dirname(__FILE__), *%w[source])
p = Post.new(File.join(File.dirname(__FILE__), *%w[source _posts]), "2008-12-13-include.textile")
p = Post.new(File.join(File.dirname(__FILE__), *%w[source _posts]), "2008-12-13-include.markdown")
layouts = {"default" => Layout.new(File.join(File.dirname(__FILE__), *%w[source _layouts]), "simple.html")}
p.add_layout(layouts, {"site" => {"posts" => []}})

assert_equal "<<< <p>&#8212;<br />\nTom Preston-Werner<br />\ngithub.com/mojombo</p> >>>", p.output
assert_equal "<<< <hr />\n<p>Tom Preston-Werner github.com/mojombo</p>\n\n<p>This <em>is</em> cool</p> >>>", p.output
end
end

0 comments on commit fbdcf46

Please sign in to comment.