rspec installation rails code example
Example: install rspec rails 5
$ rails g rspec:install create .rspec create spec create spec/spec_helper.rb create spec/rails_helper.rb
$ rails g rspec:install create .rspec create spec create spec/spec_helper.rb create spec/rails_helper.rb