| 
									
										
										
										
											2019-04-19 15:38:03 +09:00
										 |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-02 11:43:41 -07:00
										 |  |  | require "cmd/shared_examples/args_parse" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | RSpec.describe "Homebrew::Cmd::Services", :integration_test, :needs_network do | 
					
						
							|  |  |  |   before { setup_remote_tap "homebrew/services" } | 
					
						
							| 
									
										
										
										
											2017-02-23 06:07:24 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-04-02 11:43:41 -07:00
										 |  |  |   it_behaves_like "parseable arguments", command_name: "services" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   it "allows controlling services" do | 
					
						
							| 
									
										
										
										
											2017-02-23 06:07:24 +01:00
										 |  |  |     expect { brew "services", "list" } | 
					
						
							| 
									
										
										
										
											2022-01-21 13:52:22 +00:00
										 |  |  |       .to not_to_output.to_stderr | 
					
						
							| 
									
										
										
										
											2017-02-23 06:07:24 +01:00
										 |  |  |       .and not_to_output.to_stdout | 
					
						
							|  |  |  |       .and be_a_success | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |