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

时间:2013-09-10 15:58:40

标签: ruby-on-rails heroku rspec

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

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)

我们如何摆脱它?

1 个答案:

答案 0 :(得分:2)

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

您需要gem "rails_12factor", group: :production之类的内容,因此它不会包含在测试环境中。

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