justniffer: improve test
This commit is contained in:
parent
1c9c872ad1
commit
3c02e6a9cc
1 changed files with 5 additions and 2 deletions
|
@ -40,8 +40,11 @@ class Justniffer < Formula
|
|||
system "make install"
|
||||
end
|
||||
|
||||
def test
|
||||
system "#{bin}/justniffer --version | grep '^justniffer'"
|
||||
test do
|
||||
require 'open3'
|
||||
Open3.popen3("#{bin}/justniffer", "--version") do |_, stdout, _|
|
||||
/justniffer #{Regexp.escape(version)}/ === stdout.read
|
||||
end
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
|
|
Loading…
Reference in a new issue