search for: orderpaymentinfo

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

Did you mean: order_payment_info
2008 Mar 19
2
Stub / Mock - A little guidance?
...; when imitating an object, but not its behavior. I should be using a stub when I want to imitate the behavior of an object. Does that sound about right? With that said, I''m struggling a little trying to spec out this instance method that is available to a User object. The method takes an OrderPaymentInfo object and copies its attributes onto the User''s attributes (Ignore the clunky design... that''s just how it has to be). The User''s instance method looks like so: class User def update_billing_info(billing_info) unless self.has_billing_address? self.bill_to_addr...