rspec-rails extends Rails' built-in testing framework to support rspec examples for requests, controllers, models, views, helpers, mailers and routing. rspec-rails 6 supports Rails 6.1 to 7.0. For earlier versions of Rails, you should use rspec-rails-5 for Rails 5.2 and 6.0, rspec-rails-4 for Rails 5.x, and rspec-rails 3 for even older versions. Install gem install rspec-rails This installs the fo