all repos — markup @ 60a36e1d93b2fa3f6c9ddabfe0eb8b23b5519f41

The code we use to render README.your_favorite_markup

Quiet down the test failure output a little
tekkub tekkub@gmail.com
Tue, 23 Mar 2010 21:53:33 -0600
commit

60a36e1d93b2fa3f6c9ddabfe0eb8b23b5519f41

parent

bf7155e8ccd681171681e8b467f8836bc6e86c7a

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M test/markup_test.rbtest/markup_test.rb

@@ -9,9 +9,15 @@ next if readme =~ /html$/

markup = readme.split('/').last.gsub(/^README\./, '') define_method "test_#{markup}" do + source = File.read(readme) + expected_file = "#{readme}.html" expected = File.read(expected_file) actual = GitHub::Markup.render(readme, File.read(readme)) + + if source != expected + assert(source != actual, "#{markup} did not render anything") + end diff = IO.popen("diff -u - #{expected_file}", 'r+') do |f| f.write actual