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

Test to ensure content_tag works when fixing #17661 #18054

Merged
merged 1 commit into from Dec 16, 2014

Conversation

jonatack
Copy link
Contributor

After c2fe093, which was reverted yesterday, there will likely be
future PRs to address #17661.

The test `actionview/test/template/capture_helper_test.rb

test_capture_returns_nil_if_the_returned_value_is_not_a_string` should

have errored with c2fe093, but it was rewritten in the PR to not raise.
My guess is that it may have seemed irrelevant to the content_tag tests
or already covered by them.

This test provides additional protection by being in the content_tag
test suite to explicitly raise a red flag in future cases.

After c2fe093, which was reverted yesterday, there will likely be
future PRs to address rails#17661.

The test `actionview/test/template/capture_helper_test.rb
#test_capture_returns_nil_if_the_returned_value_is_not_a_string` should
have errored with c2fe093, but it was rewritten in the PR to not raise.
My guess is that it may have seemed irrelevant to the content_tag tests
or already covered by them.

This test provides additional protection by being in the content_tag
test suite to explicitly raise a red flag in future cases. It foregoes
some redundancy for safety — at least until rails#17661 is closed.
rafaelfranca added a commit that referenced this pull request Dec 16, 2014
Test to ensure content_tag works when fixing #17661
@rafaelfranca rafaelfranca merged commit 1f5df85 into rails:master Dec 16, 2014
@jonatack jonatack deleted the add_content_tag_test branch December 16, 2014 16:48
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.

None yet

2 participants