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 应用程序时如何告诉 Rails 使用 RSpec 而不是 test-unit?
我将它从 Gemfile 中删除,但是当我尝试生成集成测试时,它仍会尝试调用 rspec。
bundle install
配置/应用程序.rb
config.generators do |g| g.view_specs false g.helper_specs false g.test_framework :rspec end
或者:
config.generators.test_framework :rspec
如果是这样,请删除这些。