 49d2d7b94d
			
		
	
	
		49d2d7b94d
		
	
	
	
	
		
			
			Instead of `testball` use a formula named `testballhome` to avoid this clashing with any other formula named testball.
		
			
				
	
	
		
			18 lines
		
	
	
		
			576 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			576 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| describe "brew home", :integration_test do
 | |
|   it "opens the Homebrew homepage when no argument is given" do
 | |
|     expect { brew "home", "HOMEBREW_BROWSER" => "echo" }
 | |
|       .to output("#{HOMEBREW_WWW}\n").to_stdout
 | |
|       .and not_to_output.to_stderr
 | |
|       .and be_a_success
 | |
|   end
 | |
| 
 | |
|   it "opens the homepage for a given Formula" do
 | |
|     setup_test_formula "testballhome"
 | |
| 
 | |
|     expect { brew "home", "testballhome", "HOMEBREW_BROWSER" => "echo" }
 | |
|       .to output("#{Formula["testballhome"].homepage}\n").to_stdout
 | |
|       .and not_to_output.to_stderr
 | |
|       .and be_a_success
 | |
|   end
 | |
| end
 |