git-tracker: improve test
This commit is contained in:
parent
055373763b
commit
1205275668
1 changed files with 5 additions and 2 deletions
|
@ -11,7 +11,10 @@ class GitTracker < Formula
|
|||
rake 'standalone:install', "prefix=#{prefix}"
|
||||
end
|
||||
|
||||
def test
|
||||
`#{bin}/git-tracker test-command`.chomp == 'git-tracker is here. How are you?'
|
||||
test do
|
||||
require 'open3'
|
||||
Open3.popen3("#{bin}/git-tracker", "test-command") do |_, stdout, _|
|
||||
"git-tracker is here. How are you?" == stdout.read.strip
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue