diff --git a/Formula/trash-cli.rb b/Formula/trash-cli.rb index 181cb06e3e..3762ce0141 100644 --- a/Formula/trash-cli.rb +++ b/Formula/trash-cli.rb @@ -24,7 +24,7 @@ class TrashCli < Formula test do touch "testfile" - assert File.exist?("testfile") + assert_predicate testpath/"testfile", :exist? system bin/"trash-put", "testfile" assert !File.exist?("testfile") end