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 include_pagination_headers matcher to check Link header in api specs #29596

Merged

Conversation

mjankowski
Copy link
Contributor

This is the spec changes and matcher addition from #28826

I think this is a slight improvement/streamlining of these specs even if we don't pull in that concern change from the PR -- and it may make that one easier to review if this is in first.

The matcher here is in theory flexible enough to use on other Link headers if we have them, but for now I'm just using it in the api specs to check for the next/prev url values.

In a few spots, this let us combine what were previously multi-request examples into single ones, so there may be a marginal speedup here too.

@mjankowski mjankowski added testing Automated lint and test suites ruby Pull requests that update Ruby code labels Mar 14, 2024
@ClearlyClaire ClearlyClaire added this pull request to the merge queue Mar 15, 2024
Merged via the queue into mastodon:main with commit 2e91a9b Mar 15, 2024
35 checks passed
@mjankowski mjankowski deleted the api-concern-pagination-only-specs branch March 15, 2024 13:24
lutoma pushed a commit to ohaisocial/mastodon that referenced this pull request Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ruby Pull requests that update Ruby code testing Automated lint and test suites
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants