aescrypt-packetizer: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:00 -07:00
parent 1cb63a565f
commit 9985b59f02

View file

@ -69,7 +69,7 @@ class AescryptPacketizer < Formula
path.write original_contents
system bin/"paescrypt", "-e", "-p", "fire", path
assert File.exist?("#{path}.aes")
assert_predicate testpath/"#{path}.aes", :exist?
system bin/"paescrypt", "-d", "-p", "fire", "#{path}.aes"
assert_equal original_contents, path.read