I can not for the life of me figure out why validation of objects of
one of my classes always fails.
The highlighted lines are where I am getting errors. The unit test
fails on the highlighted line every time. If I
remove :olive_oil_sources from validates_presence_of validation works
I have also tried writing my own validate method:
if ( olive_oil_destination.nil? || olive_oil_sources.empty? )
which also fails even though each individual piece of the if
expression evaluates true when run under console.
Why is this object not validating? Driving me nuts.