| 
									
										
										
										
											2025-03-18 17:38:37 +00:00
										 |  |  | # frozen_string_literal: true | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | require "bundle" | 
					
						
							| 
									
										
										
										
											2025-03-24 21:55:47 +08:00
										 |  |  | require "bundle/remover" | 
					
						
							| 
									
										
										
										
											2025-03-18 17:38:37 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | RSpec.describe Homebrew::Bundle::Remover do | 
					
						
							|  |  |  |   subject(:remover) { described_class } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   let(:name) { "foo" } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   before { allow(Formulary).to receive(:factory).with(name).and_raise(FormulaUnavailableError.new(name)) } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   it "raises no errors when requested" do | 
					
						
							|  |  |  |     expect { remover.possible_names(name, raise_error: false) }.not_to raise_error | 
					
						
							|  |  |  |   end | 
					
						
							|  |  |  | end |