Skip to content

Commit

Permalink
graceful fail test
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Oct 31, 2009
1 parent 9709f2d commit 8a01c90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/github/markup.rb
Expand Up @@ -20,7 +20,7 @@ def renderer(filename)
end

def render(filename, content)
renderer(filename)[content]
renderer(filename)[content] || content
end
end
end
Expand Down
6 changes: 6 additions & 0 deletions test/markup_test.rb
Expand Up @@ -24,4 +24,10 @@ def test_textile
</ul>
textile
end

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

0 comments on commit 8a01c90

Please sign in to comment.