rstrip results to avoid errors dealing with newlines at the end of a file
Garen Torikian gjtorikian@gmail.com
Tue, 10 Sep 2013 22:26:56 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
test/markup_test.rb
→
test/markup_test.rb
@@ -12,8 +12,8 @@ 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)) + expected = File.read(expected_file).rstrip + actual = GitHub::Markup.render(readme, File.read(readme)).rstrip if source != expected assert(source != actual, "#{markup} did not render anything")