The most common way to install the RSpec gem is using Bundler. Add this line to your application's Gemfile:
gem 'rspec'
And then execute bundle to install the dependencies:
$ bundle
Alternatively, you can install the gem manually:
$ gem install rspec
After installing the gem, run the fol...