The project_spec.rb file uses four basic RSpec and Rails features:

  1. It requires rails_helper.
  2. It defines a test suite with RSpec.describe.
  3. It creates an RSpec example with it.
  4. It specifies a particular state with expect.

Here we can see spec/models/project_spec.rb file:

Get hands-on with 1200+ tech skills courses.