homebrew-core/Formula/style-check.rb
Baptiste Fontaine 69dfad5e64 style-check: add test
Closes Homebrew/homebrew#37813.

Signed-off-by: Brett Koonce <koonce@gmail.com>
2015-03-18 22:44:24 -07:00

19 lines
685 B
Ruby

class StyleCheck < Formula
homepage "https://www.cs.umd.edu/~nspring/software/style-check-readme.html"
url "https://www.cs.umd.edu/~nspring/software/style-check-0.14.tar.gz"
sha256 "2ae806fcce9e3b80162c64634422dc32d7f0e6f8a81ba5bc7879358744b4e119"
def install
inreplace "style-check.rb", "/etc/style-check.d/", etc/"style-check.d/"
system "make", "PREFIX=#{prefix}",
"SYSCONFDIR=#{etc}/style-check.d",
"install"
end
test do
(testpath/".style-censor").write "homebrew % capitalize Homebrew\n"
(testpath/"paper.tex").write "Today I worked on homebrew\n"
system "#{bin}/style-check.rb", "-v", "paper.tex"
end
end