Displaying 1 result from an estimated 1 matches for "order_payment_info".
2008 Mar 19
2
Stub / Mock - A little guidance?
...= billing_info.extension
self.bill_to_fax = billing_info.fax_number
self.save ? true : false
else
true
end
end
Here''s the spec:
describe User, "when checking billing information" do
before(:each) do
@user = User.new(:id => 1)
@order_payment_info = mock_model(OrderPaymentInfo,
:id => 1,
:user_id => @user.id,
:address1 => "555 Rd.",
:address2 => "Ste 2",...