Sha256: 6d44cf09bd916b584d13542e44f5efada99afee451399b21971993456d56a959
Contents?: true
Size: 818 Bytes
Versions: 8
Compression:
Stored size: 818 Bytes
Contents
require "spec_helper" RSpec.describe Fontist::Formulas::TahomaFont do describe "initializing" do it "builds the data dictionary" do formula = Fontist::Formulas::TahomaFont.instance expect(formula.fonts.count).to eq(1) expect(formula.fonts.first[:name]).to eq("Tahoma") end end describe "installation" do context "with valid licence agreement", slow: true do it "installs the valid fonts", skip_in_windows: true do name = "Tahoma" confirmation = "yes" stub_fontist_path_to_temp_path paths = Fontist::Formulas::TahomaFont.fetch_font( name, confirmation: confirmation ) expect(Fontist::Font.find(name)).not_to be_empty expect(paths.first).to include("fonts/#{name.downcase}.ttf") end end end end
Version data entries
8 entries across 7 versions & 2 rubygems