Sha256: 62b0424d147482aef1d3de5d3d754c9093c5a585b570ebe1db5953fdf542e4ea
Contents?: true
Size: 646 Bytes
Versions: 6
Compression:
Stored size: 646 Bytes
Contents
require File::join(File::dirname(__FILE__), 'test_helper') IDENTIFY_FONT_RESPONSE =<<EOF Font: Zapf-Dingbats family: Zapf Dingbats style: Normal stretch: Normal weight: 400 glyphs: /System/Library/Fonts/ZapfDingbats.ttf Font: Zapfino family: Zapfino style: Italic stretch: Normal weight: 400 glyphs: /Library/Fonts/Zapfino.ttf EOF class ParserTest < Test::Unit::TestCase def test_parse_fonts parser = MojoMagick::Util::Parser.new parsed_fonts = parser.parse_fonts(IDENTIFY_FONT_RESPONSE) assert_equal parsed_fonts.length, 2 assert_equal parsed_fonts[1].style, 'Italic' end end
Version data entries
6 entries across 6 versions & 1 rubygems