Skip to content
Snippets Groups Projects
Unverified Commit 61b48d85 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

formulary: install tap if needed.

This matches what `cask_loader` does and is low risk given we no longer
allow tap pinning.

Fixes #7626
parent e4719cb6
No related branches found
No related tags found
No related merge requests found
......@@ -279,6 +279,8 @@ module Formulary
end
def load_file
tap.install unless tap.installed?
super
rescue MethodDeprecatedError => e
e.issues_url = tap.issues_url || tap.to_s
......
......@@ -227,7 +227,8 @@ describe Formulary do
end
end
it "raises an error if the Formula is not available" do
it "raises an error if the Formula is not available after tapping" do
expect_any_instance_of(Tap).to receive(:install)
expect {
described_class.to_rack("a/b/#{formula_name}")
}.to raise_error(TapFormulaUnavailableError)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment