Sha256: deed226a612f35755b7799da94aeb404002ed0426e8bae01ae388ba6602004da
Contents?: true
Size: 670 Bytes
Versions: 1
Compression:
Stored size: 670 Bytes
Contents
require File.join(File.dirname(__FILE__), 'test_helper') IDENTIFY_FONT_RESPONSE = <<~EOF.freeze 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 < MiniTest::Test 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mojo_magick-0.5.7 | test/parser_test.rb |