spec/fontist/system_font_spec.rb in fontist-0.4.0 vs spec/fontist/system_font_spec.rb in fontist-1.0.0

- old
+ new

@@ -11,16 +11,16 @@ expect(dejavu_ttf.first).to include("spec/fixtures/fonts/") end end context "with valid font name" do - it "returns the complete font path", file_download: true do - name = "Courier" - stub_fontist_path_to_assets - Fontist::Formulas::CourierFont.fetch_font(name, confirmation: "yes") + it "returns the complete font path", slow: true do + name = "Calibri" + stub_fontist_path_to_temp_path + Fontist::Formulas::ClearTypeFonts.fetch_font(name, confirmation: "yes") - courier = Fontist::SystemFont.find(name, sources: [font_sources]) - expect(courier.first).to include("cour.ttf") + calbiri = Fontist::SystemFont.find(name, sources: [font_sources]) + expect(calbiri.join("|").downcase).to include("#{name.downcase}.ttf") end end context "with invalid font" do it "returns nill to the caller" do