【发布时间】:2021-05-31 17:17:56
【问题描述】:
Rails 新项目 (6.1) 在没有测试的情况下创建
rails new [project name] -T
然后我安装了 rspec 5 并生成了一个输出以下错误的系统测试。
LoadError: cannot load such file --
capybara System test integration requires Rails >= 5.1
and has a hard dependency on a webserver and `capybara`,
please add capybara to your Gemfile and configure a webserver
(e.g. `Capybara.server = :webrick`) before attempting to use system specs.
No examples found.
【问题讨论】:
标签: ruby-on-rails rspec capybara