From 17ce27736cdcdd77b2d39db6aefb44df7abbd3c9 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Mon, 9 Oct 2017 09:23:51 -0700 Subject: [PATCH] choose: use assert_predicate --- Formula/choose.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/choose.rb b/Formula/choose.rb index 79e39575525c7..f194cac99e830 100644 --- a/Formula/choose.rb +++ b/Formula/choose.rb @@ -39,6 +39,6 @@ def install # There isn't really a better test than that the executable exists # and is executable because you can't run it without producing an # interactive selection ui. - File.executable?("#{bin}/choose") + assert_predicate bin/"choose", :executable? end end