Permalink
Browse files

pipenv 8.2.6: use assert_predicate not File.exist?

`brew audit` has a new requirement to prefer assert/refute_predicate over
File.exist? as of Homebrew/brew#3269
  • Loading branch information...
richardcooper committed Oct 6, 2017
1 parent 59de6c2 commit 35019e2ca12277bd66eb08feaa73fc94bbbd6739
Showing with 4 additions and 4 deletions.
  1. +4 −4 Formula/pipenv.rb
@@ -101,10 +101,10 @@ def install
test do
assert_match "Commands", shell_output("#{bin}/pipenv")
assert_equal false, File.exist?("Pipfile")
refute_predicate testpath/"Pipfile", :exist?
system "#{bin}/pipenv", "install", "requests"
assert_equal true, File.exist?("Pipfile")
assert_equal true, File.exist?("Pipfile.lock")
assert_match "requests", File.read("Pipfile")
assert_predicate testpath/"Pipfile", :exist?
assert_predicate testpath/"Pipfile.lock", :exist?
assert_match "requests", File.read(testpath/"Pipfile")
end
end

0 comments on commit 35019e2

Please sign in to comment.