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
Add actionview
bug report template
#49986
Conversation
a7cd26c
to
d8ea067
Compare
4ef181e
to
af7d911
Compare
end | ||
|
||
def test_stuff | ||
view.extend Helpers |
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.
This isn't how you add helpers to test cases, you use the helper
class method.
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.
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
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.
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.
@rafaelfranca I've pushed up a change to use that method.
af7d911
to
de0d492
Compare
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.
de0d492
to
fe2632f
Compare
CI failures seem unrelated. |
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 aHelpers
module to demonstrate how to incorporate view helpers into the reproduction script.Checklist
Before submitting the PR make sure the following are checked:
[Fix #issue-number]