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 教程,但最终决定要删除 Rspec、Capybara 和 Factory-Girl gem 以及所有生成的文件,但是我不知道如何执行此操作。我知道这里发布了几个类似的问题,但我在任何地方都找不到真正的答案。谢谢!
从您的gemfile. 然后从命令行运行bundle install。这就对了。至于生成的文件,您将不得不手动删除它们。您可以在命令行中使用rm -r spec/requests目录或rm spec/requests/name_of_spec.rb每个单独的文件。如果您需要更多帮助,请告诉我
gemfile
bundle install
rm -r spec/requests
rm spec/requests/name_of_spec.rb