 2bdf0d6068
			
		
	
	
		2bdf0d6068
		
			
		
	
	
	
	
		
			
			When GitHub Actions is congested some tests can take longer than this (particularly as we're running in parallel). Globally double the time we allow for all tests.
		
			
				
	
	
		
			25 lines
		
	
	
		
			585 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			585 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| 
 | |
| require "extend/ENV"
 | |
| require "cmd/shared_examples/args_parse"
 | |
| 
 | |
| describe "Homebrew.reinstall_args" do
 | |
|   it_behaves_like "parseable arguments"
 | |
| end
 | |
| 
 | |
| describe "brew reinstall", :integration_test do
 | |
|   it "reinstalls a Formula" do
 | |
|     install_test_formula "testball"
 | |
|     foo_dir = HOMEBREW_CELLAR/"testball/0.1/bin"
 | |
|     expect(foo_dir).to exist
 | |
|     foo_dir.rmtree
 | |
| 
 | |
|     expect { brew "reinstall", "testball" }
 | |
|       .to output(/Reinstalling testball/).to_stdout
 | |
|       .and not_to_output.to_stderr
 | |
|       .and be_a_success
 | |
| 
 | |
|     expect(foo_dir).to exist
 | |
|   end
 | |
| end
 |