summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-01-29 03:56:16 +0000
committerEric Wong <normalperson@yhbt.net>2013-01-29 04:02:57 +0000
commitfdd7c851e5664c1e629a904e21d147a9dfc950d7 (patch)
treee3d6c6f24f058142fd0600ac89033eed77944b9a
parent89071a412e161a3ea24a9574611932a1f0acc8c7 (diff)
This off-by-one error was incorrectly rejecting a line which
would've been readable without wrapping on an 80-column terminal.
-rw-r--r--test/exec/test_exec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/exec/test_exec.rb b/test/exec/test_exec.rb
index 1cee2b7..10a1bae 100644
--- a/test/exec/test_exec.rb
+++ b/test/exec/test_exec.rb
@@ -323,6 +323,7 @@ EOF
     # mobile phone or netbook on a slow connection :)
     assert lines.size <= 24, "help height fits in an ANSI terminal window"
     lines.each do |line|
+      line.chomp!
       assert line.size <= 80, "help width fits in an ANSI terminal window"
     end
   end