Sha256: ce50793849853d9b07cb5eb433f9efbe3b364183dcff70d7a02f7ddab8efcfef
Contents?: true
Size: 912 Bytes
Versions: 2
Compression:
Stored size: 912 Bytes
Contents
require File.dirname(__FILE__) + '/../../test_helper' class BogusTest < Test::Unit::TestCase def setup @gateway = BogusGateway.new( :login => 'bogus', :password => 'bogus', :test => true ) @creditcard = credit_card('1') @response = ActiveMerchant::Billing::Response.new(true, "Transaction successful", :transid => '1') 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_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activemerchant-1.2.0 | test/unit/gateways/bogus_test.rb |
activemerchant-1.2.1 | test/unit/gateways/bogus_test.rb |