all repos — markup @ 7fd339e75b81acb877fa3d3464137ad3a57fd42b

The code we use to render README.your_favorite_markup

test/helper.rb (view raw)

1module MarkupTestDSL
2  def test(filename, input, output)
3    ext = filename.split('.').last
4    define_method "test_#{ext}" do
5      assert_equal output, GitHub::Markup.render(filename, input)
6    end
7  end
8end