| 
									
										
										
										
											2020-10-10 14:16:11 +02:00
										 |  |  | # typed: false | 
					
						
							| 
									
										
										
										
											2019-04-19 15:38:03 +09:00
										 |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-26 09:49:13 +00:00
										 |  |  | require "cmd/shared_examples/args_parse" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-02-01 16:14:25 -05:00
										 |  |  | describe "brew tap" do | 
					
						
							| 
									
										
										
										
											2019-03-26 09:49:13 +00:00
										 |  |  |   it_behaves_like "parseable arguments" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-02-01 16:14:25 -05:00
										 |  |  |   it "taps a given Tap", :integration_test do | 
					
						
							| 
									
										
										
										
											2019-03-26 09:49:13 +00:00
										 |  |  |     path = setup_test_tap | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-05-06 10:11:21 -04:00
										 |  |  |     expect { brew "tap", "--force-auto-update", "homebrew/bar", path/".git" } | 
					
						
							| 
									
										
										
										
											2020-09-17 04:18:13 +05:30
										 |  |  |       .to output(/Tapped/).to_stderr | 
					
						
							| 
									
										
										
										
											2019-03-26 09:49:13 +00:00
										 |  |  |       .and be_a_success | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |