mlxcc: use test DSL

This commit is contained in:
Jack Nagel 2013-02-01 23:12:46 -06:00
parent 728a5f774b
commit 112ff1e361

View file

@ -12,11 +12,8 @@ class Mlxcc < Formula
system "make install"
end
def test
mktemp do
(Pathname.pwd / "test.c").write("int main(void) { return 0; }")
system ENV.cc, "-lmlxcc", "test.c"
end
test do
(testpath/"test.c").write("int main(void) { return 0; }")
system ENV.cc, "-lmlxcc", "test.c"
end
end