I found an answer here.
A possible way to do this is:
expect(repository).to receive(:clone) do |**kwargs| expect(kwargs).not_to include(:branch) end
Admittedly not as neat as a single matcher but it get the job done.