Fix test, basic functionality of detekt

This commit is contained in:
wasanx25 2019-11-26 23:22:37 +09:00 committed by Rui Chen
parent f0728f99aa
commit 1b93c1b811

View file

@ -12,6 +12,12 @@ class Detekt < Formula
end
test do
system bin/"detekt", "--help"
(testpath/"input.kt").write <<~EOS
fun main() {
}
EOS
system bin/"detekt", "--input", "input.kt", "--report", "txt:output.txt"
assert_equal "EmptyFunctionBlock", shell_output("cat output.txt").slice(/\w+/)
end
end