Setting Up the App and Initial Test

If you are having this error
NoMethodError: undefined method last_comment for ...
on rails 5.2,
use rspec-rails version 3.5. On your gemfile add the
gem 'rspec-rails', '~> 3.5', '>= 3.5.2'