todolist: use assert_predicate instead of File.exist?
This commit is contained in:
parent
5deef35cc1
commit
cd99bfa657
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue