mmv: use assert_predicate and refute_predicate

This commit is contained in:
ilovezfs 2017-10-09 02:43:52 -07:00
parent 15729a8a3b
commit 23dcbc49e9

View file

@ -36,7 +36,7 @@ class Mmv < Formula
touch testpath/"a"
touch testpath/"b"
pipe_output(bin/"mmv", "a b\nb c\n")
assert !(testpath/"a").exist?
assert (testpath/"c").exist?
refute_predicate testpath/"a", :exist?
assert_predicate testpath/"c", :exist?
end
end