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

Improve matching of cookie assertions. #47066

Merged
merged 1 commit into from Jan 20, 2023

Conversation

ioquatix
Copy link
Contributor

@ioquatix ioquatix commented Jan 20, 2023

The current implementation makes assumptions about the order and case sensitivity of cookie attributes. Introduce methods to parse those fields and compare them semantically. Update the existing tests to take advantage of these new assertions.

This is in preparation for Rack 3 which requires these changes, since it generates cookies using lower case tokens, while Rack 2 used mixed case.

The current implementation makes assumptions about the order and case
sensitivity of cookie attributes. Introduce methods to parse those fields
and compare them semantically. Update the existing tests to take advantage
of these new assertions.
@rafaelfranca rafaelfranca merged commit f549d0d into rails:main Jan 20, 2023
@ioquatix ioquatix deleted the rack-3-cookies branch January 20, 2023 16:00
@ioquatix
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants