todolist: use assert_predicate instead of File.exist?

This commit is contained in:
ilovezfs 2017-10-06 02:08:14 -07:00
parent 5deef35cc1
commit cd99bfa657

View file

@ -24,7 +24,7 @@ class Todolist < Formula
test do
system bin/"todolist", "init"
assert File.exist?(".todos.json")
assert_predicate testpath/".todos.json", :exist?
add_task = shell_output("#{bin}/todolist add learn the Tango")
assert_match /Todo.* added/, add_task
end