How do you mock ResultMatcher for a Rspec mock

Trying to mock an unhappy path in my Rails 7.2 application so I can get full coverage on my controller/application_controller.rb. This screenshot shows my simple coverage report of the code and the missed line and code branch(es):

When I mock the Failure[:invalid_resource, resource] and the action’s call, I can get it into the code block for sure (I know this by prints/puts), but when it does each of the ResultMatchers, I get:
Failure/Error:
result.success(:resource) do |_key, resource, _message|
return Success(resource)
end

ArgumentError:
wrong number of arguments (given 1, expected 0)

As of now, the resource(s) are AR and implement :errors, but there could be something else later and I’d like to test the fallbacks/lines/branches. I like to know how to mock it. The pseudo test rspec code setup is:
context "not valid but does not respond to #errors" do
let(:resource) { double("Resource") }
let(:action) { double("Action") }
let(:failure_result) { Failure[:invalid_resource, resource] }
before do
allow(action).to receive(:call).and_yield(failure_result)
allow(MyService::Endpoints::ShowLayout::Action).to receive(:new).and_return(action)
get url(my_id)
end
it { expect(flash[:error]).to be_present }
it { expect(response).to redirect_to(my_path) }
end

Any suggestions or docs here will help and appreciate the help.

BTW that error is happening on the first result matcher which is the success one. It fails on all the others if I comment out each of the others as you go down the code. It has to be I need to mock a ResultMatcher and not just the Failure and I’m not sure howto.