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