Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting different responses on each call. #6

Open
amitfriedman12 opened this issue Feb 8, 2017 · 0 comments
Open

Getting different responses on each call. #6

amitfriedman12 opened this issue Feb 8, 2017 · 0 comments

Comments

@amitfriedman12
Copy link

amitfriedman12 commented Feb 8, 2017

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant