79192368

Date: 2024-11-15 12:30:10
Score: 1
Natty:
Report link

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.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Sergio