graceful fail test
Chris Wanstrath chris@ozmm.org
Fri, 30 Oct 2009 18:16:15 -0700
2 files changed,
7 insertions(+),
1 deletions(-)
M
lib/github/markup.rb
→
lib/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.rb
→
test/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