Sha256: d10a82da89dc8ea000046f76f1acc28b5aaee8d33a084a02fe55ced2b1936a56
Contents?: true
Size: 985 Bytes
Versions: 1
Compression:
Stored size: 985 Bytes
Contents
require File.dirname(__FILE__) + '/../../test_helper' class BogusTest < Test::Unit::TestCase def setup @gateway = BogusGateway.new( :login => 'bogus', :password => 'bogus' ) @creditcard = credit_card('1') @response = ActiveMerchant::Billing::Response.new(true, "Transaction successful", :transid => BogusGateway::AUTHORIZATION) end def test_authorize @gateway.capture(1000, @creditcard) end def test_purchase @gateway.purchase(1000, @creditcard) end def test_credit @gateway.credit(1000, @response.params["transid"]) end def test_void @gateway.void(@response.params["transid"]) end def test_store @gateway.store(@creditcard) end def test_unstore @gateway.unstore('1') end def test_supported_countries assert_equal ['US'], BogusGateway.supported_countries end def test_supported_card_types assert_equal [:bogus], BogusGateway.supported_cardtypes end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activemerchant-1.4.2 | test/unit/gateways/bogus_test.rb |