tractorgen: use “squiggly” heredocs.
This commit is contained in:
parent
5c0fed0e7f
commit
968d2762d3
1 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue