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

Refactor form_for tests to stop re-assigning @output_buffer #45745

Merged
merged 1 commit into from Aug 3, 2022

Conversation

casperisfine
Copy link
Contributor

Ref: #45731

It's really not what it's meant for. @renderer is a better use for this as it's the variable used by the DOM testing helpers.

Shipping this independently, as I don't like changing tests as part of feature refactors if I can avoid it.

These tests are in the way of various followup after #45731.

FYI: @jhawthorn, @BlakeWilliams (I'll merge on green)

It's really not what it's meant for. `@renderer` is a better use
for this as it's the variable used by the DOM testing helpers.

Ref: rails#45731
@rails-bot rails-bot bot added the actionview label Aug 3, 2022
@byroot byroot merged commit ee754ba into rails:main Aug 3, 2022
casperisfine pushed a commit to Shopify/rails that referenced this pull request Aug 3, 2022
Followup on rails#45745

`@rendered` is a much better variable for this kind of intermediate
result as that's what is used by DOM assertions.
byroot added a commit that referenced this pull request Jan 19, 2023
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