Sha256: 55355f792adfd9ad7a6c3b821335564392dce53a3b3a7fa74314fe8d3f192531

Contents?: true

Size: 764 Bytes

Versions: 11

Compression:

Stored size: 764 Bytes

Contents

require File.dirname(__FILE__) + '/../../test_helper'

class PayflowUkTest < Test::Unit::TestCase
  def setup
    @gateway = PayflowUkGateway.new(
      :login => 'LOGIN',
      :password => 'PASSWORD'
    )
  end

  def test_default_currency
    assert_equal 'GBP', PayflowUkGateway.default_currency
  end
  
  def test_express_instance
    assert_instance_of PayflowExpressUkGateway, @gateway.express
  end
  
  def test_default_partner
    assert_equal 'PayPalUk', PayflowUkGateway.partner
  end
  
  def test_supported_countries
    assert_equal ['GB'], PayflowUkGateway.supported_countries
  end
  
  def test_supported_card_types
    assert_equal [:visa, :master, :american_express, :discover, :solo, :switch], PayflowUkGateway.supported_cardtypes
  end
end

Version data entries

11 entries across 11 versions & 5 rubygems

Version Path
martinstannard-activemerchant-0.1.0 test/unit/gateways/payflow_uk_test.rb
seamusabshere-active_merchant-1.4.2.1 test/unit/gateways/payflow_uk_test.rb
seamusabshere-active_merchant-1.4.2.3 test/unit/gateways/payflow_uk_test.rb
activemerchant-1.3.1 test/unit/gateways/payflow_uk_test.rb
activemerchant-1.4.1 test/unit/gateways/payflow_uk_test.rb
activemerchant-1.3.0 test/unit/gateways/payflow_uk_test.rb
activemerchant-1.3.2 test/unit/gateways/payflow_uk_test.rb
activemerchant-1.4.0 test/unit/gateways/payflow_uk_test.rb
activemerchant-1.4.2 test/unit/gateways/payflow_uk_test.rb
merb_merchant-1.4.1 test/unit/gateways/payflow_uk_test.rb
spree-0.2.0 vendor/plugins/active_merchant/test/unit/gateways/payflow_uk_test.rb