cfv: Pathname.pwd not just Pathname

This commit is contained in:
ilovezfs 2017-10-07 06:34:44 -07:00
parent 2f580f34f4
commit 0e369bba89

View file

@ -23,7 +23,7 @@ class Cfv < Formula
(testpath/"test/test.txt").write "Homebrew!"
cd "test" do
system bin/"cfv", "-t", "sha1", "-C", "test.txt"
assert_predicate Pathname/"test.sha1", :exist?
assert_predicate Pathname.pwd/"test.sha1", :exist?
assert_match /9afe8b4d99fb2dd5f6b7b3e548b43a038dc3dc38/, File.read("test.sha1")
end
end