Skip to content

Commit b0e4ca6

Browse files
Use string interpolation for trailing whitespace
Code editors are commonly configured to strip trailing whitespace when saving. Additionally, trailing whitespace may be hard to distinguish visually, both in the editor and in diffs. This commit uses string interpolation to encode expected trailing whitespace.
1 parent 34df888 commit b0e4ca6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/shell/basic_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def #456 Lanç...
321321
2.times { @table.first.pop }
322322
content = capture(:stdout) { shell.print_table(@table) }
323323
expect(content).to eq(<<-TABLE)
324-
abc
324+
abc#{" "}
325325
#0 empty
326326
xyz #786 last three
327327
TABLE

0 commit comments

Comments
 (0)