Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Rubymine和running rspec“;rspec核心不是捆绑包的一部分;_Ruby On Rails_Ruby_Rspec_Rubymine - Fatal编程技术网

Ruby on rails Rubymine和running rspec“;rspec核心不是捆绑包的一部分;

Ruby on rails Rubymine和running rspec“;rspec核心不是捆绑包的一部分;,ruby-on-rails,ruby,rspec,rubymine,Ruby On Rails,Ruby,Rspec,Rubymine,我正在尝试运行一个rails应用程序,它不是使用rubymine创建的。这是一种非常不同的应用程序,使用加载的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 i

我正在尝试运行一个rails应用程序,它不是使用rubymine创建的。这是一种非常不同的应用程序,使用加载的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>'
测试于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不是包的一部分。将其添加到文件中。(Gem::LoadError)
from/Users/userbnamexxxx/.rbenv/versions/1.9.3-p327/bin/rspec:22:in`'
from-e:1:in“load”
from-e:1:in`'
我编辑了配置,并且选中了bundle exec复选框。在控制台中测试TUN很好。我尝试了另一个项目,这是一个默认的bug标准rails应用程序,它很好。。。我正在使用rbenv管理ruby版本。。。。 请帮助我,因为我真的被卡住了,最好不要使用终端…

添加gem

rspec核心


在你的.Gemfile中

ma也一样,我确实在Gemfile.lock中有gem,但是
bundle show rspec score
不会显示它