Sha256: 587f77a6d029b67304345b35ab34e32e6fed4843538b60547b8c0681618912dd

Contents?: true

Size: 692 Bytes

Versions: 30

Compression:

Stored size: 692 Bytes

Contents

require 'test_helper'

class RemoteSecurePayTest < Test::Unit::TestCase  
  
  def setup
    @gateway = SecurePayGateway.new(fixtures(:secure_pay))

    @credit_card = credit_card('4111111111111111',
      :month => '7',
      :year  => '2007'
    )
    
    @options = { :order_id => generate_unique_id,
      :description => 'Store purchase',
      :billing_address => address
    }
    
    @amount = 100
  end
  
  def test_successful_purchase
    assert response = @gateway.purchase(@amount, @credit_card, @options)
    assert response.success?
    assert response.test?
    assert_equal 'This transaction has been approved', response.message
    assert response.authorization
  end
end

Version data entries

30 entries across 30 versions & 9 rubygems

Version Path
johnideal-activemerchant-1.4.10 test/remote/gateways/remote_secure_pay_test.rb
johnideal-activemerchant-1.4.11 test/remote/gateways/remote_secure_pay_test.rb
johnideal-activemerchant-1.4.4 test/remote/gateways/remote_secure_pay_test.rb
johnideal-activemerchant-1.4.5 test/remote/gateways/remote_secure_pay_test.rb
johnideal-activemerchant-1.4.6 test/remote/gateways/remote_secure_pay_test.rb
johnideal-activemerchant-1.4.7 test/remote/gateways/remote_secure_pay_test.rb
johnideal-activemerchant-1.4.8 test/remote/gateways/remote_secure_pay_test.rb
mattbauer-activemerchant-1.4.2 test/remote/gateways/remote_secure_pay_test.rb
tomriley-active_merchant-1.4.2.3 test/remote/gateways/remote_secure_pay_test.rb
tomriley-active_merchant-1.4.2.4 test/remote/gateways/remote_secure_pay_test.rb
tomriley-active_merchant-1.4.2.5 test/remote/gateways/remote_secure_pay_test.rb
tomriley-active_merchant-1.4.2.6 test/remote/gateways/remote_secure_pay_test.rb
tomriley-active_merchant-1.4.2.7 test/remote/gateways/remote_secure_pay_test.rb
tomriley-active_merchant-1.4.2.8 test/remote/gateways/remote_secure_pay_test.rb
tomriley-tomriley-active_merchant-1.4.2.4 test/remote/gateways/remote_secure_pay_test.rb
goldstar-activemerchant-1.4.2.7 test/remote/gateways/remote_secure_pay_test.rb
goldstar-activemerchant-1.4.2.6 test/remote/gateways/remote_secure_pay_test.rb
tomriley-active_merchant-1.4.2.11 test/remote/gateways/remote_secure_pay_test.rb
tomriley-active_merchant-1.4.2.10 test/remote/gateways/remote_secure_pay_test.rb
ghazel-activemerchant-1.4.2 test/remote/gateways/remote_secure_pay_test.rb