diff options
| author | Mike Naberezny | 2014-05-25 21:31:40 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2014-05-26 07:29:37 -0700 |
| commit | 7be7065d9627cebc68e591122c16c36072f83524 (patch) | |
| tree | a0f1576874e7da81bb69d86b490f5133fbd69bf6 /Library/Formula | |
| parent | 65ad1b537cbfa69a702e783b7a12a98555cd7079 (diff) | |
| download | homebrew-7be7065d9627cebc68e591122c16c36072f83524.tar.bz2 | |
netcat6: remove popen, use assert_equal, add assertion for exitstatus
Closes #29580.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/netcat6.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/netcat6.rb b/Library/Formula/netcat6.rb index 0024b736f..c666ec252 100644 --- a/Library/Formula/netcat6.rb +++ b/Library/Formula/netcat6.rb @@ -19,9 +19,9 @@ class Netcat6 < Formula end test do - IO.popen("#{bin}/nc6 --version") { |subp| - assert subp.readline.strip == "nc6 version #{version}" - } + lines = `#{bin}/nc6 --version`.split("\n") + assert_equal "nc6 version #{version}", lines[0] + assert_equal 0, $?.exitstatus end end |
