Skip to content

Commit

Permalink
fwup: use assert_predicate instead of File.exist?
Browse files Browse the repository at this point in the history
  • Loading branch information
ilovezfs committed Oct 6, 2017
1 parent 18c815e commit a33ad78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Formula/fwup.rb
Expand Up @@ -23,7 +23,7 @@ def install

test do
system bin/"fwup", "-g"
assert File.exist?("fwup-key.priv"), "Failed to create fwup-key.priv!"
assert File.exist?("fwup-key.pub"), "Failed to create fwup-key.pub!"
assert_predicate testpath/"fwup-key.priv", :exist?, "Failed to create fwup-key.priv!"
assert_predicate testpath/"fwup-key.pub", :exist?, "Failed to create fwup-key.pub!"
end
end

0 comments on commit a33ad78

Please sign in to comment.