Checkout this new tutorial series about testing Rails with RSpec. The course uses RSpec 3 and Rails 7 and covers:
Installing RSpec
RSpec 3 syntax
Testing models
Testing controllers
Testing views
Testing mailers, background jobs & ActionCable (all in Rails 7)
Testing JSON APIs
Writing integration tests
And much much more..