Sha256: b27da5048c8b49229531822b57e0367c6719bf6be288d46d8201046862575f55
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
require 'spec_helper' describe FontProcessor::FontFileNamingStrategy do before(:all) do @naming_strategy = FontProcessor::FontFileNamingStrategy.new("postscript.otf", "fixtures") @charset_id = "1" end it "can name a character set" do expect(@naming_strategy.char_set(@charset_id, FontProcessor::FontFormat.new(:ttf, :otf))).to eq "fixtures/charset-#{@charset_id}-otf.ttf" expect(@naming_strategy.char_set(@charset_id, FontProcessor::FontFormat.new(:cff, :otf))).to eq "fixtures/charset-#{@charset_id}-otf.otf" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fontprocessor-27.1.3 | spec/lib/fontprocessor/font_file_naming_strategy_spec.rb |