【发布时间】:2015-03-11 17:54:24
【问题描述】:
这是在标准的 test.rb 中:
# Do not eager load code on boot. This avoids loading your whole application
# just for the purpose of running a single test. If you are using a tool that
# preloads Rails for running tests, you may have to set it to true.
config.eager_load = false
此建议是否适用于运行整个测试套件时,还是仅适用于运行单个测试时?
我如何决定是打开还是关闭?
在运行单个测试时设置为假,在运行整个套件时设置为真,有什么妙方吗?
(我怀疑我得到的某些类型的错误是关闭的结果)
【问题讨论】:
标签: ruby-on-rails testing rspec