mlxcc: use test DSL

master
Jack Nagel 2013-02-01 23:12:46 -06:00
parent 728a5f774b
commit 112ff1e361
1 changed files with 3 additions and 6 deletions

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