Sha256: 4a0310ecf0a1d52ff5aa39e373331d952650a253bfc841d08a38bd2566082253
Contents?: true
Size: 643 Bytes
Versions: 2
Compression:
Stored size: 643 Bytes
Contents
require_relative "test_helper" IDENTIFY_FONT_RESPONSE = <<~EOFONT 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 EOFONT 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mojo_magick-0.6.2 | test/parser_test.rb |
mojo_magick-0.6.0 | test/parser_test.rb |