$LOAD_PATH.unshift File.dirname(__FILE__) + "/../lib" require 'github/markup' require 'test/unit' class MarkupTest < Test::Unit::TestCase def test_markdown markdown = GitHub::Markup.render('README.markdown', "* One\n* Two") assert_equal <
  • One
  • Two
  • markdown end def test_textile textile = GitHub::Markup.render('README.textile', "* One\n* Two") assert_equal < \t
  • One
  • \t
  • Two
  • textile end def test_graceful_fail content = "* One\n* Two" text = GitHub::Markup.render('README.imadeitup', content) assert_equal content, text end end