mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
17 lines
426 B
Ruby
17 lines
426 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "bundle"
|
|
require "bundle/remover"
|
|
|
|
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
|