jsonschema2pojo: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:07 -07:00
parent 5ed43fcfa3
commit d02c5e4d11

View file

@ -31,6 +31,6 @@ class Jsonschema2pojo < Formula
}
EOS
system bin/"jsonschema2pojo", "-s", "src", "-t", testpath
assert File.exist?("Jsonschema.java"), "Failed to generate Jsonschema.java"
assert_predicate testpath/"Jsonschema.java", :exist?, "Failed to generate Jsonschema.java"
end
end