I stubbed the subset billed? method
subset.stub(:billed?).and_return(true)
line_item has a delegate for billed? to subset billed?
when I call the methods the following occurs
(rdb:1) subset.billed?
true
(rdb:1) subset.line_items[0].billed?
false
(rdb:1) subset === subset.line_items[0].order_subset
true
(rdb:1) subset.billed? == subset.line_items[0].subset.billed?
false
on the first call it works
on the second I call the billed method over the relation delegated and the stub failes
on the third I check if the subset and the subest of the line_item-relation are the same model and its true
on the fourth I compare the output of the same method called directly on the subset and indirectly over the relation and it fails
is there anybody ever had this?