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 actionview bug report template #49986

Merged
merged 1 commit into from Dec 16, 2023

Conversation

seanpdoyle
Copy link
Contributor

Motivation / Background

Introduce Action View bug report templates for contributors to reproduce issues with failing ActionView::TestCase instances.

Detail

In addition to rendering ERB with the inline: keyword, the sample tests also include a Helpers module to demonstrate how to incorporate view helpers into the reproduction script.

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one change. Changes that are unrelated should be opened in separate PRs.
  • Commit message has a detailed description of what changed and why. If this PR fixes a related issue include it in the commit message. Ex: [Fix #issue-number]
  • Tests are added or updated if you fix a bug or add a feature.

@rails-bot rails-bot bot added the docs label Nov 9, 2023
@seanpdoyle seanpdoyle force-pushed the action-view-bug-report-templates branch from a7cd26c to d8ea067 Compare November 10, 2023 15:40
@seanpdoyle seanpdoyle requested a review from p8 November 10, 2023 15:42
@seanpdoyle seanpdoyle force-pushed the action-view-bug-report-templates branch 2 times, most recently from 4ef181e to af7d911 Compare November 10, 2023 17:04
end

def test_stuff
view.extend Helpers
Copy link
Member

Choose a reason for hiding this comment

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

This isn't how you add helpers to test cases, you use the helper class method.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for calling that out! Is there somewhere in the documentation I could learn more about that? I can't find the method in the API docs

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@rafaelfranca I've pushed up a change to use that method.

@zzak
Copy link
Member

zzak commented Nov 25, 2023

I'm starting to wonder if we really need both main && gem variations, when the only real difference is one line:

- gem "rails", github: "rails/rails", branch: "main"
+ gem "rails", "~> 7.1.0"

It could just be a comment, right?

Introduce Action View bug report template for contributors to reproduce
issues with failing `ActionView::TestCase` instances.

In addition to rendering ERB with the `inline:` keyword, the sample
tests also include a `Helpers` module to demonstrate how to incorporate
view helpers into the reproduction script.
@seanpdoyle seanpdoyle force-pushed the action-view-bug-report-templates branch from de0d492 to fe2632f Compare December 16, 2023 15:16
@seanpdoyle
Copy link
Contributor Author

@zzak @byroot I'v rebased this to account for the changes introduced in #50317.

@byroot
Copy link
Member

byroot commented Dec 16, 2023

CI failures seem unrelated.

@byroot byroot merged commit 32afa64 into rails:main Dec 16, 2023
3 of 4 checks passed
@seanpdoyle seanpdoyle deleted the action-view-bug-report-templates branch December 16, 2023 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants