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

Fix #with_request_url to ensure request.query_parameters is an instance of ActiveSupport::HashWithIndifferentAccess #1833

Merged
merged 1 commit into from
Sep 1, 2023

Conversation

milk1000cc
Copy link
Contributor

What are you trying to accomplish?

When using the #with_request_url test helper, request.query_parameters returns Hash, while Rails' request.query_parameters returns ActiveSupport::HashWithIndifferentAccess.

So I changed the request.query_parameters in the #with_request_url test helper to also return ActiveSupport::HashWithIndifferentAccess.

…stance of ActiveSupport::HashWithIndifferentAccess
Copy link
Collaborator

@reeganviljoen reeganviljoen left a comment

Choose a reason for hiding this comment

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

I think this is a good bug fix

@Spone Spone enabled auto-merge (squash) August 30, 2023 16:36
@reeganviljoen
Copy link
Collaborator

@Spone the only tests failing seem to be the flaky capture compatibility tests, so it seems safe to merge from my standpoint

@Spone Spone merged commit fa31d16 into ViewComponent:main Sep 1, 2023
21 checks passed
@milk1000cc milk1000cc deleted the fix-with-request-url branch September 6, 2023 11:48
claudiob pushed a commit to claudiob/view_component that referenced this pull request Dec 22, 2023
claudiob pushed a commit to claudiob/view_component that referenced this pull request Jan 3, 2024
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.

3 participants