Sha256: c68646de6004dd046bc2308ae6d051f5f5fe2821e9fc814baa113a044d4b38eb
Contents?: true
Size: 858 Bytes
Versions: 8
Compression:
Stored size: 858 Bytes
Contents
require "spec_helper" RSpec.describe Fontist::Formulas::SourceFonts do describe "initializing" do it "builds the data dictionary" do formula = Fontist::Formulas::SourceFonts.instance expect(formula.fonts.count).to eq(33) expect(formula.fonts.first[:name]).to eq("Source Code Pro") end end describe "installation" do context "with valid licence agreement", slow: true do it "installs the valid fonts" do name = "Source Code Pro" confirmation = "yes" stub_fontist_path_to_temp_path paths = Fontist::Formulas::SourceFonts.fetch_font( name, confirmation: confirmation ) expect(Fontist::Font.find(name)).not_to be_empty expect(paths).to include( Fontist.fonts_path.join("SourceCodePro-Black.ttf").to_s ) end end end end
Version data entries
8 entries across 7 versions & 2 rubygems