mock5 icon indicating copy to clipboard operation
mock5 copied to clipboard

Getting different responses on each call.

Open amitfriedman12 opened this issue 8 years ago • 0 comments

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)

amitfriedman12 avatar Feb 08 '17 18:02 amitfriedman12