From fdd7c851e5664c1e629a904e21d147a9dfc950d7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 29 Jan 2013 03:56:16 +0000 Subject: 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. --- test/exec/test_exec.rb | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3-24-ge0c7