| 
									
										
										
										
											2019-04-19 15:38:03 +09:00
										 |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-06-02 02:12:40 +02:00
										 |  |  | require "cmd/search" | 
					
						
							| 
									
										
										
										
											2019-03-28 08:35:36 +00:00
										 |  |  | require "cmd/shared_examples/args_parse" | 
					
						
							| 
									
										
										
										
											2018-06-02 02:12:40 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-01 10:12:52 -07:00
										 |  |  | RSpec.describe Homebrew::Cmd::SearchCmd do | 
					
						
							| 
									
										
										
										
											2019-03-28 08:35:36 +00:00
										 |  |  |   it_behaves_like "parseable arguments" | 
					
						
							| 
									
										
										
										
											2017-02-23 06:04:59 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-17 15:26:18 +00:00
										 |  |  |   it "finds formula in search", :integration_test do | 
					
						
							| 
									
										
										
										
											2020-07-01 11:55:25 +01:00
										 |  |  |     setup_test_formula "testball" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     expect { brew "search", "testball" } | 
					
						
							|  |  |  |       .to output(/testball/).to_stdout | 
					
						
							|  |  |  |       .and be_a_success | 
					
						
							|  |  |  |   end | 
					
						
							| 
									
										
										
										
											2017-02-23 06:04:59 +01:00
										 |  |  | end |