search for: is_business_address

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

2007 Nov 20
2
confirming that a model instance was correctly created from POST params
...29 order_account.stub!( :order_user_id= ) 30 order_account.stub!( :order_address_id= ) 31 order_account.stub!( :save! ) 32 OrderAccount.stub!( :new ).and_return( order_account ) 33 34 assigns[:use_separate_shipping_address] = FALSE 35 params[:is_business_address] = TRUE 36 create_order_from_post 37 38 assigns[:billing_address].is_business_address.should be_true end end What I am trying to demonstrate to myself is that the addition of a boolean "is_business_address" column to the order_addresses table via a migration allow...