Add gem 'rspec-rails'
in Gemfile
and save it. Run bundle
command in Terminal. And in config/application.rb
, add this line of configuration
config.generators do |g|
g.test_framework :rspec, :fixture => true, :views => false
g.integration_tool :rspec, :fixture => true, :views => true
end