RSpec Gemfile

Before we start testing, we’ll need to load RSpec, our testing library.

To add RSpec to a Rails project, we’ll add the rspec-rails gem to the Gemfile:

Get hands-on with 1200+ tech skills courses.