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

Return generated matches on generate #12

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

pieterjongsma
Copy link

@pieterjongsma pieterjongsma commented Oct 16, 2020

This pull makes generate methods return the generated matches. This is convenient when you want to use these matches later in an application, for example to assign them to playing fields.

@pieterjongsma pieterjongsma changed the title Return generated matches on generate [WIP] Return generated matches on generate Oct 16, 2020
@pieterjongsma pieterjongsma force-pushed the return-generated-matches branch from 81c61d5 to f643d0e Compare October 16, 2020 20:45
expect(match1.home_team).to eq(2)
expect(match1.away_team).to eq(4)
expect(match2.home_team).to eq(1)
expect(match1.away_team).to eq(1)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seemed to me that you would expect the same 'grand-final' as in the grand-final-only spec context.

@pieterjongsma pieterjongsma changed the title [WIP] Return generated matches on generate Return generated matches on generate Oct 16, 2020
@pieterjongsma pieterjongsma reopened this Aug 3, 2021
@pieterjongsma pieterjongsma force-pushed the return-generated-matches branch 6 times, most recently from df8cfa4 to be3cc7d Compare August 3, 2021 08:21
@pieterjongsma pieterjongsma force-pushed the return-generated-matches branch from be3cc7d to 83252fa Compare August 3, 2021 08:22
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

Successfully merging this pull request may close these issues.

1 participant