spec/fontist/installer_spec.rb in fontist-0.2.0 vs spec/fontist/installer_spec.rb in fontist-0.3.0
- old
+ new
@@ -3,12 +3,12 @@
RSpec.describe Fontist::Installer do
describe ".download" do
context "with already downloaded fonts", skip_in_windows: true do
it "returns the font path" do
name = "CALIBRI.TTF"
- Fontist::MsVistaFont.fetch_font(name, confirmation: "yes")
+ Fontist::Formulas::MsVista.fetch_font(name, confirmation: "yes")
- allow(Fontist::MsVistaFont).to receive(:fetch_font).and_return(nil)
+ allow(Fontist::Formulas::MsVista).to receive(:fetch_font).and_return(nil)
paths = Fontist::Installer.download(name, confirmation: "yes")
expect(paths.first).to include("fonts/#{name}")
end
end