gpt4 book ai didi

ruby-on-rails - (Rails) Assert_Select 的恼人警告

转载 作者:行者123 更新时间:2023-12-03 10:36:17 25 4
gpt4 key购买 nike

有谁知道如何让 assert_select 在 rake 测试期间不输出所有那些讨厌的 html 警告?你知道,像这样的东西:

.ignoring attempt to close body with div
opened at byte 1036, line 5
closed at byte 5342, line 42
attributes at open: {"class"=>"inner02"}
text around open: "</script>\r\t</head>\r\t<body class=\"inner02"
text around close: "\t</div>\r\t\t\t</div>\r\t\t</div>\r\t</body>\r</ht"

谢谢

最佳答案

而是您的代码生成了无效的 HTML。我建议通过验证器运行它并修复所有验证错误。

关于ruby-on-rails - (Rails) Assert_Select 的恼人警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1671221/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com