mercury: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:47:49 -07:00
parent 9182d3a746
commit 96a5d6caf2

View file

@ -54,7 +54,7 @@ class Mercury < Formula
io.write_string("#{test_string}", IOState_in, IOState_out).
EOS
system "#{bin}/mmc", "--make", "hello"
assert File.exist?(testpath/"hello")
assert_predicate testpath/"hello", :exist?
assert_equal test_string, shell_output("#{testpath}/hello")
end