installing rspec gemfile

Shell
source 'https://rubygems.org'
  gem 'rspec'

#inside the Gemfile

Source

Also in Shell: