Skip to content

Commit

Permalink
fixup: mock lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rrotter committed Jul 1, 2024
1 parent c219040 commit 277d66e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Library/Homebrew/test/search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

require "search"
require "descriptions"
require "cmd/desc"

RSpec.describe Homebrew::Search do
describe "#query_regexp" do
Expand Down Expand Up @@ -60,7 +61,7 @@
end

describe "#search_descriptions" do
let(:args) { instance_double("args") }
let(:args) { Homebrew::Cmd::Desc.new(["min_arg_placeholder"]).args }

context "with api" do
let(:api_formulae) do
Expand All @@ -72,7 +73,6 @@
end

before do
allow(args).to receive_messages(formula?: false, cask?: false, eval_all?: false)
allow(Homebrew::API::Formula).to receive(:all_formulae).and_return(api_formulae)
allow(Homebrew::API::Cask).to receive(:all_casks).and_return(api_casks)
end
Expand Down

0 comments on commit 277d66e

Please sign in to comment.