search for: payment_author

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

2007 Nov 13
2
Trouble stubbing a method
...;ll pastie it. I have an Order model that makes API calls to a payment gateway(TrustCommerce) during validation(to verify the credit card information). I''d like to stub this behavior to avoid thousands of calls to TrustCommerce a day(autotest). All the calls are made in one method: Order#payment_authorize. This is called from ActiveRecord#validate. So, my thinking was just to stub out Order#payment_authorize. So here is one of my specs: describe Order, "placed via the web" do include OrderSpecHelper before(:each) do @order = generate_valid_web_order @order.should_rec...