Browse files

test_exec: do not count '\n' as column width

This off-by-one error was incorrectly rejecting a line which
would've been readable without wrapping on an 80-column terminal.
  • Loading branch information...
1 parent 89071a4 commit fdd7c851e5664c1e629a904e21d147a9dfc950d7 Eric Wong committed Jan 29, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 test/exec/test_exec.rb
1 test/exec/test_exec.rb
@@ -323,6 +323,7 @@ def test_help
# 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"

0 comments on commit fdd7c85

Please sign in to comment.