rename: use assert_predicate instead of File.exist?
This commit is contained in:
parent
0e12cd4d8a
commit
0cd523b6b3
1 changed files with 1 additions and 1 deletions
|
@ -26,6 +26,6 @@ class Rename < Formula
|
|||
touch "foo.doc"
|
||||
system "#{bin}/rename -s .doc .txt *.d*"
|
||||
assert !File.exist?("foo.doc")
|
||||
assert File.exist?("foo.txt")
|
||||
assert_predicate testpath/"foo.txt", :exist?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue