Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.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 如何克服运行规范时的捆绑解决冲突_Ruby On Rails_Rspec_Bundler - Fatal编程技术网

Ruby on rails 如何克服运行规范时的捆绑解决冲突

Ruby on rails 如何克服运行规范时的捆绑解决冲突,ruby-on-rails,rspec,bundler,Ruby On Rails,Rspec,Bundler,我刚刚添加了rspec,但是当我尝试运行规范时会遇到绑定器冲突,如果我运行rake任务或启动服务器,则不会发生这种情况 bundle exec spec /<snip>/gems/bundler-1.0.21/lib/bundler/resolver.rb:280:in `resolve': You have requested: (Bundler::GemNotFound) nokogiri >= 0 The bundle currently has nokogiri

我刚刚添加了rspec,但是当我尝试运行规范时会遇到绑定器冲突,如果我运行rake任务或启动服务器,则不会发生这种情况

bundle exec spec

/<snip>/gems/bundler-1.0.21/lib/bundler/resolver.rb:280:in `resolve': You have requested: (Bundler::GemNotFound)
  nokogiri >= 0

The bundle currently has nokogiri locked at 1.5.0.
Try running `bundle update nokogiri`
我已经尝试运行bundle update nokogiri并删除Gemfile.lock,然后重新运行bundle安装。我甚至尝试过rvm gemset empty并重新开始

档案:

Gemfile.lock:

JRuby:1.6.2 轨道:3.0.10 Bundler:1.0.21

它似乎在运行rspec而不是spec works