Sha256: 0e6425552c57191fe01902c5e02af2cb452a77d0725db7274b07f56b208635be
Contents?: true
Size: 705 Bytes
Versions: 4
Compression:
Stored size: 705 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 FontTest < MiniTest::Unit::TestCase def test_font f = MojoMagick::Font.new assert_equal f.name, nil assert_equal f.valid?, false f = MojoMagick::Font.new(:name => "Zapfino", :weight => 400) assert_equal f.name, 'Zapfino' assert_equal f.valid?, true assert_equal f.weight, 400 end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mojo_magick-0.5.6 | test/font_test.rb |
mojo_magick-0.5.5 | test/font_test.rb |
mojo_magick-0.5.4 | test/font_test.rb |
mojo_magick-0.5.3 | test/font_test.rb |