Rails 3 - 如果我正在使用RSpec,我可以删除'test'文件夹吗?

tee*_*aft 15 rspec ruby-on-rails

在尝试迁移时,我不断收到此错误:

rake aborted!
test-unit is not part of the bundle. Add it to Gemfile.
Run Code Online (Sandbox Code Playgroud)

如果我正在使用RSpec,我可以完全删除测试文件夹吗?

nat*_*vda 22

此错误意味着项目中的某个位置require test-unit没有在其中指定Gemfile.

因此,您应该尝试找到该语句并将其删除以修复此错误(或将依赖项添加到gemfile中 - 但如果您不使用它,则听起来有点倒退).

无论如何:test如果你正在使用,你绝对可以删除该文件夹rspec.