<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:garamond,new york,times,serif;font-size:12pt">Please understand in the following that I am making relatively minor changes to legacy (non-TDD/BDD) code in Substruct and don't have the time to refactor nicely right now. I'm just trying to get past the untested/un-speced cruft quickly to write the spec for my new code, so I'm looking for expediency over prettiness.<br><br>I'm specifying<br><br>before( :each ) do<br> @order_address = mock_model( OrderAddress, :null_object => TRUE )<br>end<br><br>but finding that unstubbed/unmocked method calls on @order_address still throw error messages like:<br><br>Mock 'OrderAddress_1026' received unexpected message :first_name with (no args)<br><br>so I'm starting to wonder whether the :null_object option is doing anything at all....<br><br><br>Al</div><br>
<hr size=1>Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html>