gptfdisk: use test assertion

This commit is contained in:
Jack Nagel 2013-06-08 21:26:21 -05:00
parent 21c3d0b9a6
commit 79af504a22

View file

@ -17,7 +17,7 @@ class Gptfdisk < Formula
test do
IO.popen("#{sbin}/gdisk", "w+") do |pipe|
pipe.write("\n")
/GPT fdisk \(gdisk\) version #{Regexp.escape(version)}/ === pipe.read
assert_match /GPT fdisk \(gdisk\) version #{Regexp.escape(version)}/, pipe.read
end
end
end