search for: orderaddress_1026

Displaying 1 result from an estimated 1 matches for "orderaddress_1026".

2007 Dec 05
9
Does mock_model''s :null_object option work?
...code, so I''m looking for expediency over prettiness. I''m specifying before( :each ) do @order_address = mock_model( OrderAddress, :null_object => TRUE ) end but finding that unstubbed/unmocked method calls on @order_address still throw error messages like: Mock ''OrderAddress_1026'' received unexpected message :first_name with (no args) so I''m starting to wonder whether the :null_object option is doing anything at all.... Al ____________________________________________________________________________________ Be a better friend, newshound, and kno...