I am trying to install rspec-rails on Ubuntu but I am encountering some problems.
Here are my exact steps:
1) Changed my Gemfile to:
source 'http://rubygems.org'
gem 'rails', '3.0.0.beta4'
gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3'
group :development do
gem 'rspec-rails', '2.0.0.beta.17'
end
group :test do
gem 'rspec', '2.0.0.beta.17'
end
2) Type "bundle install" and I get the following error:
/usr/lib/ruby/1.8/fileutils.rb:243:in `mkdir': Permission denied - /home/steve/.gem/specs (Errno::EACCES)
3) If I continue with my installation instructions and type "rails generate rspec:install" I get the following error (but it might have been caused by #2 failing)
Could not find gem 'rspec (= 2.0.0.beta.17, runtime)' in the gems available on this machine.
I was unable to find a solution for this on Google. This is the link to the tutorial I am trying to follow. My dev enviroment is Ubuntu 10.04, Ruby 1.8.7, Rails 3.0.0 beta 4.
Thanks.