Skip to content

Commit 8518d2c

Browse files
authored
mockolo: Use language-specific heredocs
1 parent 30c70c4 commit 8518d2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Formula/m/mockolo.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ def install
3030
end
3131

3232
test do
33-
(testpath/"testfile.swift").write <<~EOS
33+
(testpath/"testfile.swift").write <<~SWIFT
3434
/// @mockable
3535
public protocol Foo {
3636
var num: Int { get set }
3737
func bar(arg: Float) -> String
3838
}
39-
EOS
39+
SWIFT
4040
system bin/"mockolo", "-srcs", testpath/"testfile.swift", "-d", testpath/"GeneratedMocks.swift"
4141
assert_predicate testpath/"GeneratedMocks.swift", :exist?
42-
output = <<~EOS.gsub(/\s+/, "").strip
42+
output = <<~SWIFT.gsub(/\s+/, "").strip
4343
///
4444
/// @Generated by Mockolo
4545
///
@@ -62,7 +62,7 @@ def install
6262
return ""
6363
}
6464
}
65-
EOS
65+
SWIFT
6666
assert_equal output, shell_output("cat #{testpath/"GeneratedMocks.swift"}").gsub(/\s+/, "").strip
6767
end
6868
end

0 commit comments

Comments
 (0)