-
Notifications
You must be signed in to change notification settings - Fork 471
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
Cannot specify interactions in both setup/given and then. #251
Labels
Comments
Reported by |
Reported by |
Reported by |
Reported by
|
Reported by |
Reported by |
BoukeNijhuis
added a commit
to BoukeNijhuis/spock
that referenced
this issue
Sep 26, 2020
By default Spock uses a match first algorithm to determine the defined return value of a method. So whenever there are multiple defined return values, it will pick the first (that is not exhausted). This change enables a user to change this to a match last algorithm. So Spock will pick the last defined return value (that is not exhausted). This enables easy overriding of default return values. As requested in issue spockframework#26, spockframework#251, spockframework#321 and spockframework#962.
This was referenced Apr 7, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally reported on Google Code with ID 129
Reported by
ravi.hasija
on 2010-09-28 00:02:55- _Attachment: [OrderProcessServiceSpec.groovy](https://storage.googleapis.com/google-code-attachments/spock/issue-129/comment-0/OrderProcessServiceSpec.groovy)_
The text was updated successfully, but these errors were encountered: