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 845
没有蜡笔的小新
没有蜡笔的小新 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:17

    This is easily solved:

    bundle exec rspec
    

    will force bundler to use the gem version you are requiring for your project, ignoring system-wide settings.

提交回复
热议问题