A lot has been posted about validation issues with associations,
however, I don’t see this issue addressed specifically.
has_one :schedule, :dependent => :destroy
this creates a circular dependency that breaks test frameworks like
pickle and machinist.
At first I was surprised a little that you can contsruct objects with
…you can of course with “new” and “save”
…though I it sounds like the destroy will cause a problem.
is there a workaround for tests?
or is this a bad idea from the start?
Nevertheless, It seems to me that while a noble goal – to validate
both sides of the assoication.
How else to do it?