From d58186a21be5da18be79d5492388c5f832dbe19f Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Fri, 6 Oct 2017 02:08:07 -0700 Subject: [PATCH] lesspipe: use assert_predicate instead of File.exist? --- Formula/lesspipe.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/lesspipe.rb b/Formula/lesspipe.rb index 9a5e88868a..8df4903ce6 100644 --- a/Formula/lesspipe.rb +++ b/Formula/lesspipe.rb @@ -31,7 +31,7 @@ class Lesspipe < Formula touch "file2.txt" system "tar", "-cvzf", "homebrew.tar.gz", "file1.txt", "file2.txt" - assert File.exist?("homebrew.tar.gz") + assert_predicate testpath/"homebrew.tar.gz", :exist? assert_match /file2.txt/, shell_output("tar tvzf homebrew.tar.gz | #{bin}/tarcolor") end