Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我记得不久前在玩 Rails 引擎时,在文件夹dummy中创建了一个 Rails 应用程序lib- 该应用程序用于驱动 Rails 引擎以进行测试。在 Rails 3.2.8 中,那个虚拟应用程序去了哪里?
dummy
lib
默认情况下在您的 /test 文件夹中...
对于 rspec-rails
rails plugin new --mountable --dummy-path=spec/dummy
并在您的 spec_helper.rb 中更改对此的要求
require File.expand_path("../../spec/dummy/config/environment", __FILE__)