Merge pull request #16310 from EricFromCanada/dependency-warn-false
dependency: disable renamed formula warning
This commit is contained in:
		
						commit
						4c20298ea5
					
				@ -41,7 +41,7 @@ class Dependency
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def to_formula
 | 
			
		||||
    formula = Formulary.factory(name)
 | 
			
		||||
    formula = Formulary.factory(name, warn: false)
 | 
			
		||||
    formula.build = BuildOptions.new(options, formula.options)
 | 
			
		||||
    formula
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
@ -54,7 +54,7 @@ describe Utils::Autoremove do
 | 
			
		||||
    include_context "with formulae for dependency testing"
 | 
			
		||||
 | 
			
		||||
    before do
 | 
			
		||||
      allow(Formulary).to receive(:factory).with("three").and_return(formula_is_build_dep)
 | 
			
		||||
      allow(Formulary).to receive(:factory).with("three", { warn: false }).and_return(formula_is_build_dep)
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    context "when formulae are bottles" do
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user