Sha256: 817c50cf68ff0d0a3a444d300bd752153c06775a86f4b5ae0686049ca33b24ff
Contents?: true
Size: 681 Bytes
Versions: 4
Compression:
Stored size: 681 Bytes
Contents
require File.expand_path(File.dirname(__FILE__)) + '/helpers.rb' context Ray::Font do setup { Ray::Font } denies("creating a font from a file") { topic.new(path_of("VeraMono.ttf")) }.raises_kind_of RuntimeError asserts("creating a font from a non-existing file") { topic.new(path_of("doesnt_exist.ttf")) }.raises_kind_of RuntimeError denies("creating a font from an IO object") { open(path_of("VeraMono.ttf"), "rb") { |io| topic.new(io) } }.raises_kind_of RuntimeError asserts("creating a font from an invalid IO object") { open(path_of("aqua.png"), "rb") { |io| topic.new(io) } }.raises_kind_of RuntimeError end run_tests if __FILE__ == $0
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ray-0.2.1 | test/font_test.rb |
ray-0.2.0 | test/font_test.rb |
ray-0.1.1 | test/font_test.rb |
ray-0.1.0 | test/font_test.rb |