md: use refute_predicate instead of !File.exist?

This commit is contained in:
ilovezfs 2017-10-06 04:16:59 -07:00
parent fff9cf157b
commit 3c7e219882

View file

@ -29,7 +29,7 @@ class Md < Formula
system "#{bin}/md", "-d", "-u", "Makefile", "foo.d"
assert !File.exist?("foo.d")
refute_predicate testpath/"foo.d", :exist?
assert_predicate testpath/"Makefile", :exist?
assert_equal "# Dependencies for File: foo:\nfoo: foo.cpp\n",
File.read("Makefile")