繁体   English   中英

为什么我在Rails请求测试中进行渲染记录?

[英]Why do I get rendering logging in my Rails request tests?

我们得到这样的输出运行我们的请求测试:

Running specs.
Started GET "/" for 127.0.0.1 at 2013-09-10 16:51:02 +0200
Processing by WelcomeController#index as HTML
  Rendered welcome/index.html.slim within layouts/application (57.9ms)
Completed 200 OK in 92ms (Views: 91.6ms | ActiveRecord: 0.0ms)

我们如何摆脱这种情况?

在一位同事的英雄调试会议之后,结果是由于Heroku鼓励的Gemfile中的gem "rails_12factor"

你想要像gem "rails_12factor", group: :production这样的东西gem "rails_12factor", group: :production所以它不包含在测试环境中。

我写信给Heroku来更新他们的文档以提及这一点。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM