我刚刚添加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
答案 0 :(得分:0)
似乎正在运行rspec
而不是spec
正在运行......