 f52cbbb9da
			
		
	
	
		f52cbbb9da
		
			
		
	
	
	
	
		
			
			We only need a single file and it avoids pulling in e.g. `nokogiri` which is vulnerable. Allow updating it using `brew vendor-gems`.
		
			
				
	
	
		
			26 lines
		
	
	
		
			799 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			799 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| 
 | |
| describe "brew", :integration_test do
 | |
|   it "does not invoke `require \"formula\"` at startup" do
 | |
|     expect { brew "verify-formula-undefined" }
 | |
|       .to not_to_output.to_stdout
 | |
|       .and not_to_output.to_stderr
 | |
|       .and be_a_success
 | |
|   end
 | |
| 
 | |
|   it "does not require i18n" do
 | |
|     # This is a transitive dependency of activesupport, but we don't use it.
 | |
|     expect { I18n }.to raise_error(NameError)
 | |
|   end
 | |
| 
 | |
|   it "does not require ActiveSupport::Inflector" do
 | |
|     # ActiveSupport inflections are slow to load, so we don't use them.
 | |
|     expect { ActiveSupport::Inflector }.to raise_error(NameError)
 | |
|   end
 | |
| 
 | |
|   it "does not require Nokogiri" do
 | |
|     # The latest version of Nokogiri for Ruby 2.6 has multiple CVEs.
 | |
|     expect { Nokogiri }.to raise_error(NameError)
 | |
|   end
 | |
| end
 |