From d02c5e4d11472f24ff21a41c811e1a41780f0f6c Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Fri, 6 Oct 2017 02:08:07 -0700 Subject: [PATCH] jsonschema2pojo: use assert_predicate instead of File.exist? --- Formula/jsonschema2pojo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/jsonschema2pojo.rb b/Formula/jsonschema2pojo.rb index 0be41ef66c..f37cbec1f4 100644 --- a/Formula/jsonschema2pojo.rb +++ b/Formula/jsonschema2pojo.rb @@ -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