devtodo: add a test (#23097)
This commit is contained in:
parent
d2d19c9078
commit
5ba27b5403
1 changed files with 11 additions and 0 deletions
|
@ -30,6 +30,17 @@ class Devtodo < Formula
|
|||
system "make", "install"
|
||||
doc.install "contrib"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test").write <<~EOS
|
||||
spawn #{bin}/devtodo --add HomebrewWork
|
||||
expect "priority*"
|
||||
send -- "2\r"
|
||||
expect eof
|
||||
EOS
|
||||
system "expect", "-f", "test"
|
||||
assert_match "HomebrewWork", (testpath/".todo").read
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
|
|
Loading…
Reference in a new issue