Displaying 1 result from an estimated 1 matches for "test_charg".
Did you mean:
test_chart
2007 Jun 21
2
expects with returns that returns the return value of the actual method
...llowing test. What I''d like to be able to do is verify that purchase is
called, however, rather than specifying the return value for purchase with
returns, I''d like it to return the actual return value provided if you
called the non mocked purchase method. Is this possible?
def test_charge
gateway = ActiveMerchant::Billing::Base.gateway(:bogus).new
ActiveMerchant::Billing::Base.mode = :test
member = Member.new
member.credit_card_number = "1"
member.expiration_date = "9/19/2007"
member.payment_method = "bogus"
member.first_na...