ruby on rails - 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 -
i've update gems. i've created sample rails app , have following in gemfile:
source 'http://rubygems.org' gem 'rails', '3.0.3' gem 'sqlite3-ruby', :require => 'sqlite3' group :development gem 'rspec-rails' end group :test gem 'rspec' gem 'webrat', '0.7.1' end
however, when run 'rspec spec/', following message: /home/jeff/.rvm/gems/ruby-1.9.2-p0/gems/bundler-1.0.7/lib/bundler/runtime.rb:27:in `block in setup': have activated rspec-core 2.2.1, gemfile requires rspec-core 2.1.0. consider using bundle exec. (gem::loaderror)
try using bundle update rspec
, bundle update rspec-rails
. gemfile.lock
file, located in root directory, specifying version number each gem.
Comments
Post a Comment