I’m pretty newb… when I try to run my rspec tests I get the following
error:
You have already activated rspec-core 2.3.1, but your Gemfile requires
rspec-core 2.1.0. Consider using bundle exec.
At one point for another app was working with I did have rspec-core
2.31
defined, but in this app I have my Gemfile as:
source ‘http://rubygems.org’
gem ‘rails’, ‘3.0.3’
gem ‘sqlite3-ruby’, ‘1.2.5’, :require => ‘sqlite3’
group :development do
gem ‘rspec-rails’, ‘2.1.0’
end
group :test do
gem ‘rspec’, ‘2.1.0’
gem ‘webrat’, ‘0.7.1’
end
and I had done bundle install previously which shows:
Using abstract (1.0.0)
Using activesupport (3.0.3)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.3)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.13)
Using rack-test (0.5.6)
Using tzinfo (0.3.23)
Using actionpack (3.0.3)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.9)
Using mail (2.2.12)
Using actionmailer (3.0.3)
Using arel (2.0.6)
Using activerecord (3.0.3)
Using activeresource (3.0.3)
Using bundler (1.0.7)
Using diff-lcs (1.1.2)
Using nokogiri (1.4.4)
Using thor (0.14.6)
Using railties (3.0.3)
Using rails (3.0.3)
Using rspec-core (2.1.0)
Using rspec-expectations (2.1.0)
Using rspec-mocks (2.1.0)
Using rspec (2.1.0)
Using rspec-rails (2.1.0)
Using sqlite3-ruby (1.2.5)
Using webrat (0.7.1)
The only thing on google I found was related to
bundler - rails3 rspec issue - Stack Overflow and it’s
implying I need to manually delete some gems? This is confusing. I am
also
using rvm if that matters. I ran into all of this going through the ruby
on
rails tutorial
http://railstutorial.org/chapters/filling-in-the-layout#book_menu
chapter 3.
–
Rick R