如何在运行规范时克服Bundle解决冲突

时间:2011-11-06 14:51:55

标签: 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 locked at 1.5.0.
Try running `bundle update nokogiri`

我已尝试运行bundle update nokogiri并删除Gemfile.lock并重新运行bundle install。我甚至尝试过rvm gemset empty并重新开始。

Gemfile:https://gist.github.com/1342979

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

JRuby:1.6.2 Rails:3.0.10 Bundler:1.0.21

1 个答案:

答案 0 :(得分:0)

似乎正在运行rspec而不是spec正在运行......