Save_and_open_page 未拾取 scss 标记

发布于 2025-01-07 12:44:10 字数 160 浏览 2 评论 0原文

刚刚将 RoR 3.0 项目升级到 3.2。我已将 CSS 资产移至资产管道,现在使用 SASS。我的 Rspec 请求规范仍然通过,但是当我放入 save_and_open_page 语句时,生成的页面没有任何 CSS 样式。 HTML 渲染完全准确,说明已通过测试。

有什么配置想法吗?

Just upgraded a RoR 3.0 project to 3.2. I've moved the CSS assets to the asset pipeline and now using SASS. My Rspec request specs still pass, but when I throw in a save_and_open_page statement, the resulting page doesn't have any CSS stylings. The HTML rendering is all accurate, explaining the passing tests.

Any config ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

二手情话 2025-01-14 12:44:10

您可以使用 capybara-screenshot gem 进行调试。

它将截取您要调试的页面的屏幕截图。

安装 gem 并使用 screen_shot_and_open_image 而不是 save_and_open_page

You can use capybara-screenshot gem for debugging.

It will take a screenshot of the page you want to debug.

Install the gem and use screen_shot_and_open_image instead of save_and_open_page

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文