Using “Belongs_to” to Write Better Rails Tests With (or Without) Associations | by Nick Francisci | Jan, 2022

It requires a default link, which is fine, but a pain to test. Here’s how to write great tests regardless

Nick Franceschi
Photo via SxySelia on Unsplash
Supposed to use RSpec and FactoryBot

Leave a Comment