Test to ensure content_tag works when fixing #17661
Test to ensure content_tag works when fixing #17661

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. It foregoes
some redundancy for safety — at least until #17661 is closed.

illacceptanything/illacceptanything,maicher/rails,shioyama/rails,Envek/rails,notapatch/rails,flanger001/rails,illacceptanything/illacceptanything,elfassy/rails,bolek/rails,sergey-alekseev/rails,kmayer/rails,rossta/rails,tgxworld/rails,betesh/rails,tjschuck/rails,gauravtiwari/rails,georgeclaghorn/rails,mechanicles/rails,tjschuck/rails,deraru/rails,lcreid/rails,arunagw/rails,illacceptanything/illacceptanything,Vasfed/rails,riseshia/railsguides.kr,marklocklear/rails,yasslab/railsguides.jp,yawboakye/rails,Stellenticket/rails,flanger001/rails,baerjam/rails,mathieujobin/reduced-rails-for-travis,esparta/rails,illacceptanything/illacceptanything,rbhitchcock/rails,illacceptanything/illacceptanything,kachick/rails,Edouard-chin/rails,yawboakye/rails,yasslab/railsguides.jp,mechanicles/rails,illacceptanything/illacceptanything,rbhitchcock/rails,utilum/rails,Sen-Zhang/rails,joonyou/rails,kachick/rails,mechanicles/rails,riseshia/railsguides.kr,gcourtemanche/rails,arunagw/rails,88rabbit/newRails,bradleypriest/rails,voray/rails,mtsmfm/railstest,flanger001/rails,kddeisz/rails,printercu/rails,coreyward/rails,gavingmiller/rails,kirs/rails-1,schuetzm/rails,georgeclaghorn/rails,untidy-hair/rails,BlakeWilliams/rails,untidy-hair/rails,gavingmiller/rails,Edouard-chin/rails,ledestin/rails,Envek/rails,illacceptanything/illacceptanything,betesh/rails,notapatch/rails,coreyward/rails,tjschuck/rails,odedniv/rails,EmmaB/rails-1,coreyward/rails,brchristian/rails,gavingmiller/rails,prathamesh-sonpatki/rails,repinel/rails,marklocklear/rails,MSP-Greg/rails,jeremy/rails,MichaelSp/rails,odedniv/rails,gauravtiwari/rails,pschambacher/rails,xlymian/rails,Sen-Zhang/rails,gfvcastro/rails,bogdanvlviv/rails,joonyou/rails,yalab/rails,vipulnsward/rails,Erol/rails,Erol/rails,schuetzm/rails,mathieujobin/reduced-rails-for-travis,yahonda/rails,iainbeeston/rails,jeremy/rails,yasslab/railsguides.jp,rossta/rails,assain/rails,yhirano55/rails,riseshia/railsguides.kr,joonyou/rails,illacceptanything/illacceptanything,hanystudy/rails,hanystudy/rails,vassilevsky/rails,kmcphillips/rails,kirs/rails-1,EmmaB/rails-1,untidy-hair/rails,travisofthenorth/rails,samphilipd/rails,lcreid/rails,gfvcastro/rails,palkan/rails,stefanmb/rails,mtsmfm/rails,mijoharas/rails,esparta/rails,lucasmazza/rails,flanger001/rails,Erol/rails,aditya-kapoor/rails,hanystudy/rails,alecspopa/rails,arunagw/rails,illacceptanything/illacceptanything,bolek/rails,illacceptanything/illacceptanything,shioyama/rails,assain/rails,sergey-alekseev/rails,kirs/rails-1,Vasfed/rails,MichaelSp/rails,shioyama/rails,yalab/rails,kddeisz/rails,baerjam/rails,kddeisz/rails,joonyou/rails,lcreid/rails,palkan/rails,maicher/rails,alecspopa/rails,travisofthenorth/rails,mohitnatoo/rails,mtsmfm/railstest,stefanmb/rails,repinel/rails,jeremy/rails,illacceptanything/illacceptanything,amoody2108/TechForJustice,arjes/rails,sealocal/rails,yawboakye/rails,koic/rails,tgxworld/rails,betesh/rails,kamipo/rails,prathamesh-sonpatki/rails,koic/rails,repinel/rails,fabianoleittes/rails,mohitnatoo/rails,matrinox/rails,kmcphillips/rails,baerjam/rails,rbhitchcock/rails,ttanimichi/rails,pschambacher/rails,georgeclaghorn/rails,pvalena/rails,felipecvo/rails,ttanimichi/rails,richseviora/rails,vipulnsward/rails,Edouard-chin/rails,lucasmazza/rails,Vasfed/rails,eileencodes/rails,yawboakye/rails,rafaelfranca/omg-rails,sergey-alekseev/rails,kaspth/rails,mohitnatoo/rails,fabianoleittes/rails,ledestin/rails,repinel/rails,ttanimichi/rails,vipulnsward/rails,aditya-kapoor/rails,arjes/rails,kenta-s/rails,EmmaB/rails-1,tijwelch/rails,rafaelfranca/omg-rails,kenta-s/rails,kddeisz/rails,sealocal/rails,MSP-Greg/rails,mijoharas/rails,richseviora/rails,mechanicles/rails,elfassy/rails,rails/rails,starknx/rails,yalab/rails,printercu/rails,palkan/rails,voray/rails,felipecvo/rails,mohitnatoo/rails,Spin42/rails,richseviora/rails,ngpestelos/rails,samphilipd/rails,Spin42/rails,xlymian/rails,palkan/rails,tgxworld/rails,alecspopa/rails,printercu/rails,yahonda/rails,amoody2108/TechForJustice,kmcphillips/rails,Stellenticket/rails,gcourtemanche/rails,georgeclaghorn/rails,yasslab/railsguides.jp,starknx/rails,matrinox/rails,gfvcastro/rails,illacceptanything/illacceptanything,amoody2108/TechForJustice,Envek/rails,kamipo/rails,illacceptanything/illacceptanything,deraru/rails,elfassy/rails,schuetzm/rails,lucasmazza/rails,notapatch/rails,arunagw/rails,untidy-hair/rails,riseshia/railsguides.kr,xlymian/rails,Vasfed/rails,Stellenticket/rails,iainbeeston/rails,prathamesh-sonpatki/rails,schuetzm/rails,kenta-s/rails,printercu/rails,fabianoleittes/rails,tgxworld/rails,utilum/rails,pschambacher/rails,iainbeeston/rails,tijwelch/rails,jeremy/rails,yhirano55/rails,esparta/rails,gauravtiwari/rails,kaspth/rails,voray/rails,sealocal/rails,vassilevsky/rails,mtsmfm/railstest,Envek/rails,88rabbit/newRails,marklocklear/rails,tijwelch/rails,stefanmb/rails,Edouard-chin/rails,iainbeeston/rails,MSP-Greg/rails,maicher/rails,koic/rails,BlakeWilliams/rails,mtsmfm/rails,kaspth/rails,travisofthenorth/rails,assain/rails,fabianoleittes/rails,aditya-kapoor/rails,yahonda/rails,eileencodes/rails,shioyama/rails,baerjam/rails,utilum/rails,eileencodes/rails,kmcphillips/rails,88rabbit/newRails,vipulnsward/rails,betesh/rails,mijoharas/rails,rafaelfranca/omg-rails,samphilipd/rails,pvalena/rails,yalab/rails,prathamesh-sonpatki/rails,mathieujobin/reduced-rails-for-travis,BlakeWilliams/rails,yhirano55/rails,matrinox/rails,assain/rails,deraru/rails,Erol/rails,MichaelSp/rails,Spin42/rails,bolek/rails,kmayer/rails,aditya-kapoor/rails,gcourtemanche/rails,felipecvo/rails,utilum/rails,Stellenticket/rails,illacceptanything/illacceptanything,kamipo/rails,odedniv/rails,lcreid/rails,Sen-Zhang/rails,illacceptanything/illacceptanything,kmayer/rails,pvalena/rails,yhirano55/rails,bogdanvlviv/rails,yahonda/rails,notapatch/rails,brchristian/rails,bogdanvlviv/rails,rails/rails,travisofthenorth/rails,pvalena/rails,MSP-Greg/rails,rails/rails,gfvcastro/rails,ngpestelos/rails,bradleypriest/rails,bradleypriest/rails,brchristian/rails,eileencodes/rails,ngpestelos/rails,BlakeWilliams/rails,starknx/rails,tjschuck/rails,kachick/rails,rails/rails,ledestin/rails,deraru/rails,arjes/rails,bogdanvlviv/rails,rossta/rails,esparta/rails,vassilevsky/rails,mtsmfm/rails