【问题标题】:How to overcome Bundle resolve conflict when running specs运行规范时如何克服Bundle解决冲突
【发布时间】:2011-11-06 14:51:54
【问题描述】:

我刚刚添加了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 install。我什至尝试过rvm gemset empty 并重新开始。

宝石文件:https://gist.github.com/1342979

Gemfile.lock: https://gist.github.com/1342981

JRuby:1.6.2 导轨:3.0.10 捆绑器:1.0.21

【问题讨论】:

    标签: ruby-on-rails rspec bundler


    【解决方案1】:

    似乎运行 rspec 而不是 spec 有效...

    【讨论】:

      猜你喜欢
      • 2015-06-15
      • 1970-01-01
      • 2017-11-20
      • 1970-01-01
      • 1970-01-01
      • 2014-01-29
      • 2012-07-18
      • 2017-06-08
      • 1970-01-01
      相关资源
      最近更新 更多