Permalink
Browse files

add markdown test

  • Loading branch information...
mojombo committed Dec 15, 2008
1 parent bcb67ec commit fbdcf469c454299eef8d39624a1dd01d06b36cc6
@@ -0,0 +1,8 @@
+---
+layout: default
+title: Include
+---
+
+{% include sig.markdown %}
+
+This _is_ cool
@@ -1,6 +0,0 @@
----
-layout: default
-title: Include
----
-
-{% include sig.textile %}
View
@@ -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.