Using FactoryBot with a PORO
Psst… You can use FactoryBot to test Plain ole Ruby Objects. So go ahead. Extract a PORO. Write a spec. Guaranteed to give you that ‘I made my bed today’ kind of feeling. # app/models/arrow_down.rb class ArrowDown # Build an arrow beginning at @from and ending at @to # from |-╮ |...