Sha256: 8b7dbfa409238e751a1c10a3c0d1466a72a45cef3cbce13b09c0e7c6cc5adf3b

Contents?: true

Size: 811 Bytes

Versions: 8

Compression:

Stored size: 811 Bytes

Contents

require "spec_helper"

RSpec.describe Fontist::Formulas::CourierFont do
  describe "initializing" do
    it "builds the data dictionary" do
      formula = Fontist::Formulas::CourierFont.instance

      expect(formula.fonts.count).to eq(1)
      expect(formula.fonts.first[:name]).to eq("Courier")
    end
  end

  describe "installation" do
    context "with valid licence agreement", slow: true do
      it "installs the valid fonts", skip_in_windows: true do
        name = "Courier"
        confirmation = "yes"

        stub_fontist_path_to_temp_path
        paths = Fontist::Formulas::CourierFont.fetch_font(
          name, confirmation: confirmation
        )

        expect(Fontist::Font.find(name)).not_to be_empty
        expect(paths.first).to include("fonts/cour.ttf")
      end
    end
  end
end

Version data entries

8 entries across 7 versions & 2 rubygems

Version Path
fontist-1.3.0 spec/fontist/formulas/courier_font_spec.rb
fontist-1.2.1 spec/fontist/formulas/courier_font_spec.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/fontist-1.1.0/spec/fontist/formulas/courier_font_spec.rb
metanorma-cli-1.3.4 gems/ruby/2.6.0/gems/fontist-1.2.0/spec/fontist/formulas/courier_font_spec.rb
fontist-1.2.0 spec/fontist/formulas/courier_font_spec.rb
metanorma-cli-1.3.3.1 gems/ruby/2.6.0/gems/fontist-1.1.0/spec/fontist/formulas/courier_font_spec.rb
fontist-1.1.0 spec/fontist/formulas/courier_font_spec.rb
fontist-1.0.0 spec/fontist/formulas/courier_font_spec.rb