>>353
obj.should_receive(:value) [ .and_return(something) ]

do_method()の中で obj.valueが呼ばれるのなら、その前に↑を。