Uninstall all versions of rspec by running the following commands suggested by Sydney in another post, and then install -V 2.0.1
gem uninstall rspec gem uninstall rspec-core rspec-expectations rspec-mocks rspec-support gem install rspec -v 2.0.1
add the following line to the gem file
gem 'rspec-rails', '~> 2.0.0'
and then run
rails generate rspec:install
It works without any problems.
erukumk Apr 19 '16 at 11:06 on 2016-04-19 11:06
source share