require 'text2svg/cli' module Text2svgCLITest def check(t) out = capture do Text2svg::CLI.start end unless String === out t.error 'return value was break' end unless 0 < out.length t.error 'unsupported font?' end if out.strip[0, 4] != '