1

我正在尝试运行不是使用 ruby​​mine 创建的 rails 应用程序。它是一种非常不同的应用程序,使用加载的 rails 引擎...当我尝试运行测试时,我收到以下错误消息

Testing started at 12:29 ...
/Users/userbnamexxxx/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb:214:in `block in replace_gem': rspec-core is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
    from /Users/userbnamexxxx/.rbenv/versions/1.9.3-p327/bin/rspec:22:in `<top (required)>'
    from -e:1:in `load'
    from -e:1:in `<main>'

我编辑了配置,它确实选中了 bundle exec 复选框。在控制台中测试很好。我尝试了另一个项目,它是一个默认的错误标准 Rails 应用程序,它在那里很好......我正在使用 rbenv 来管理 ruby​​ 版本......请帮助,因为我真的被卡住了,不使用终端会很好。 ...

4

1 回答 1

3

添加宝石

rspec-核心

进入你的 .Gemfile

于 2013-12-04T14:23:29.707 回答