mock5
mock5 copied to clipboard
Getting different responses on each call.
I was wondering, is there a way to set up the mocks in such a way that they return a different response every time an API call is mocked.
In rspec for example, we can specify different return values for multiple calls:
allow(dbl).to receive(:foo).and_return(1, 2, 3)