From c92bb5e210a6b6f32e1d5f6fbda415e4d1185f89 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 8 Jun 2013 21:26:25 -0500 Subject: sflowtool: use test assertion --- Library/Formula/sflowtool.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Formula/sflowtool.rb b/Library/Formula/sflowtool.rb index fc9726e58..32ab1700c 100644 --- a/Library/Formula/sflowtool.rb +++ b/Library/Formula/sflowtool.rb @@ -16,7 +16,7 @@ class Sflowtool < Formula test do require 'open3' Open3.popen3("#{bin}/sflowtool", "-h") do |_, _, stderr| - /sflowtool version: #{Regexp.escape(version)}/ === stderr.read + assert_match /sflowtool version: #{Regexp.escape(version)}/, stderr.read end end end -- cgit v1.2.3