tractorgen: use “squiggly” heredocs.

This commit is contained in:
ilovezfs 2018-02-17 03:03:19 -08:00
parent 5c0fed0e7f
commit 968d2762d3

View file

@ -20,13 +20,13 @@ class Tractorgen < Formula
end
test do
expected = <<-'EOS'
r-
_|
/ |_\_ \\
| |o|----\\
|_______\_--_\\
(O)_O_O_(O) \\
expected = <<~'EOS'.gsub(/^/, " ") # needs to be indented five spaces
r-
_|
/ |_\_ \\
| |o|----\\
|_______\_--_\\
(O)_O_O_(O) \\
EOS
assert_equal expected, shell_output("#{bin}/tractorgen 4")
end