r = stub_request(...).times(3)
assert_requested r
should validate that it was called 3 times, and not 1 time like it does now
just need to store the sum of times
WebMock::RequestStub.prepend(Module.new do
attr_reader :times_to_expect
def times(t)
@times_to_expect ||= 0
@times_to_expect += t
super
end
end)
and then validate using that number (unless times kwarg was given)
... lmk if you agree and I can send a PR
should validate that it was called 3 times, and not 1 time like it does now
just need to store the sum of times
and then validate using that number (unless
timeskwarg was given)... lmk if you agree and I can send a PR