【发布时间】: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