Quiet down the test failure output a little
tekkub tekkub@gmail.com
Tue, 23 Mar 2010 21:53:33 -0600
1 files changed,
6 insertions(+),
0 deletions(-)
jump to
M
test/markup_test.rb
→
test/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