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

Add perform_linear_number_of_queries rspec matcher #39

Merged
merged 8 commits into from Nov 17, 2020

Conversation

caalberts
Copy link
Contributor

@caalberts caalberts commented Oct 5, 2020

perform_linear_number_of_queries takes a parameter slope to allow for linear number of queries.

What changes did you make? (overview)

Add a rspec matcher .perform_linear_number_of_queries(slope: 1) to allow for linear number of queries..

Is there anything you'd like reviewers to focus on?

Checklist

  • I've added tests for this change
  • I've added a Changelog entry
  • I've updated a documentation

Copy link
Contributor Author

@caalberts caalberts left a comment

Choose a reason for hiding this comment

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

@palkan I made some changes to remove the intercept. If this approach looks good to you, I'll continue with the failure message and documentation.

Copy link
Owner

@palkan palkan left a comment

Choose a reason for hiding this comment

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

@caalberts Looks good. Please, go ahead!

@caalberts caalberts changed the title Add with_buffer chain on rspec matcher Add perform_linear_number_of_queries rspec matcher Oct 22, 2020
@caalberts caalberts marked this pull request as ready for review October 23, 2020 11:51
@caalberts
Copy link
Contributor Author

@palkan Could you have another look please?

Copy link
Owner

@palkan palkan left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

Left some minor comments.

CHANGELOG.md Show resolved Hide resolved
@caalberts
Copy link
Contributor Author

@palkan I have made the additional changes. Could you take a look again please?

@caalberts caalberts requested a review from palkan October 31, 2020 01:35
Copy link
Owner

@palkan palkan left a comment

Choose a reason for hiding this comment

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

Great job 👍

Would you like to add Minitest support as well? Just asking, we can add it later.

And could you please rebase, there is a conflict.

@caalberts
Copy link
Contributor Author

@palkan Rebased.

Would you like to add Minitest support as well? Just asking, we can add it later.

I'm not very familiar with Minitest. So maybe we can separate it into another PR?

@caalberts
Copy link
Contributor Author

@palkan Rebased.

Would you like to add Minitest support as well? Just asking, we can add it later.

I'm not very familiar with Minitest. So maybe we can separate it into another PR?

I started a draft in caalberts#1. I'll move it into this repository after this PR is merged.

@palkan palkan merged commit aa1e54d into palkan:master Nov 17, 2020
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.

None yet

2 participants