debianutils: use assert_predicate instead of File.exist?
This commit is contained in:
parent
2695ec5fb9
commit
f301c63d3e
1 changed files with 2 additions and 1 deletions
|
@ -26,6 +26,7 @@ class Debianutils < Formula
|
|||
end
|
||||
|
||||
test do
|
||||
assert File.exist?(shell_output("#{bin}/tempfile -d #{Dir.pwd}").strip)
|
||||
output = shell_output("#{bin}/tempfile -d #{Dir.pwd}").strip
|
||||
assert_predicate Pathname.new(output), :exist?
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue