Displaying 1 result from an estimated 1 matches for "signup_checkout".
2007 Apr 19
5
Best practice thoughts: Model helpers, mocks
...).and_return(''John'')
am.stub!(:last_name).and_return(''Doh'')
am.stub!(:gender).and_return(''M'')
am.stub!(:shirt_size).and_return(''L'')
# am.stub!(:).and_return()
addl_members << am
end
@signup_checkout = mock_model(SignupCheckout)
@signup_checkout.stub!(:valid?).and_return(true)
@signup_checkout.stub!(:shirt_size).and_return(''L'')
@signup_checkout.stub!(:billing_method).and_return(''PP'')
@signup_checkout.stub!(:additional_members).and_return(addl_...