all repos — markup @ 8a01c90d0c40ca6aae39e7b31f8128b61554913a

The code we use to render README.your_favorite_markup

graceful fail test
Chris Wanstrath chris@ozmm.org
Fri, 30 Oct 2009 18:16:15 -0700
commit

8a01c90d0c40ca6aae39e7b31f8128b61554913a

parent

9709f2d820131055e033ed8529d55f8c7b1d8d3d

2 files changed, 7 insertions(+), 1 deletions(-)

jump to
M lib/github/markup.rblib/github/markup.rb

@@ -20,7 +20,7 @@ end

end def render(filename, content) - renderer(filename)[content] + renderer(filename)[content] || content end end end
M test/markup_test.rbtest/markup_test.rb

@@ -24,4 +24,10 @@ \t<li>Two</li>

</ul> textile end + + def test_graceful_fail + content = "* One\n* Two" + text = GitHub::Markup.render('README.imadeitup', content) + assert_equal content, text + end end