-
Notifications
You must be signed in to change notification settings - Fork 356
[v4] Formatting tests to use heredoc for html blobs #368
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
Conversation
…p hidden field wrapper?
lcreid
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we merge these changes into master, the form_with PR, and probably others, will be much harder to update and/or merge. Could we agree not to do formatting changes until we've merged or otherwise taken care of the existing PRs? I can try to resubmit PR #352 today or tomorrow if I'm blocking things.
|
It's easier to adjust outstanding PRs (and they do need adjusting) than to redo heredoc again. |
|
This is a great improvement to the syntax, thanks! I see you removed the I share the concern that this introduces a lot of conflicts in existing PRs. Let's make sure we close or merge existing v4 PRs before merging this PR. Dealing with the PR backlog should be our first priority. |
|
What PRs will it introduce conflicts in that already don't have conflicts? |
|
Any PR that changed a test (which should be most of them) will have a conflict. They might not have had one before, since many were submitted against the boostrap-v4 branch. In my particular case with the That said, the way the test results are formatted now might be easier to work with. I may actually want to format the |
|
Ok. I just don't want to redo this PR. Sheer volume of html blobs literally took hours to clean up. |
|
So now there's #370 that will make this PR conflict. You were worrying about old PRs from last year when I was trying to make new PRs better. 🤷♂️ |
lcreid
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
It's ready to go. Let's merge this. |
|
Thanks 🙌 |
* formatting bootstrap_checkbox_test.rb * formatting for bootstrao_fields_test. why assertion was not picking up hidden field wrapper? * done with form_group_test * formatted form_test * formatting other_components_test * heredoc for radio_button_test * heredoc for form_class_models_test * heredoc for selects_test * formatting new tests
Not attempting to fix anything. Just adjusting formatting so it's easier to work with tests.
Well, that didn't take forever.
No changes to tests besides heredoc. Added
options_rangehelper method in bootstrap_selects_test because loops are a thing.Tests are blowing up for Rails that we don't care about anymore. Reason why they started to blow up?
assert_equivalent_xmlstarted to see old wrapper around form's hidden field suddenly. I guess adding a whitespace did something. I don't really trust that assertion helper much.Let's merge this before other PRs come in with tests. It will be a nightmare to resolve conflicts.
Can merge before or after #366. They're don't rely on each other.