Hi,
I’m trying to write a spec that documents that child.save gets called
when parent.save is called. Child has belongs_to :parent.
What is the method that gets called on the child association on
parent.save? Can it be mocked?
Thanks,
Scott
Hi,
I’m trying to write a spec that documents that child.save gets called
when parent.save is called. Child has belongs_to :parent.
What is the method that gets called on the child association on
parent.save? Can it be mocked?
Thanks,
Scott
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs