Trying to use rspec, but getting an error that rspec-core 2.2.1 has been activated, but my Gemfile requires rspec-core 2.1.0

后端 未结 6 861
没有蜡笔的小新
没有蜡笔的小新 2021-02-08 03:35

I\'ve update my gems. I\'ve created a sample Rails app and have the following in my Gemfile:

source \'http://rubygems.org\'

gem \'rails\', \'3.0.3\'
gem \'sqli         


        
6条回答
  •  心在旅途
    2021-02-08 04:16

    I got the same issue right now. to fix it try to:

    sudo gem uninstall rspec-core -v 2.2.1
    bundle update rspec-core
    

    You may need to do that for other dependent gems (like rspec, rspec-rails etc). Use the command to see the candidates:

    gem list rspec
    

提交回复
热议问题