debianutils: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 03:53:25 -07:00
parent 2695ec5fb9
commit f301c63d3e

View file

@ -26,6 +26,7 @@ class Debianutils < Formula
end
test do
assert File.exist?(shell_output("#{bin}/tempfile -d #{Dir.pwd}").strip)
output = shell_output("#{bin}/tempfile -d #{Dir.pwd}").strip
assert_predicate Pathname.new(output), :exist?
end
end