test/unit/gateways/braintree_test.rb in activemerchant-1.3.2 vs test/unit/gateways/braintree_test.rb in activemerchant-1.4.0
- old
+ new
@@ -6,14 +6,11 @@
@gateway = BraintreeGateway.new(
:login => 'LOGIN',
:password => 'PASSWORD'
)
- @credit_card = credit_card('4242424242424242',
- :type => 'visa'
- )
-
+ @credit_card = credit_card
@amount = 100
@options = { :billing_address => address }
end
@@ -48,10 +45,10 @@
def test_supported_countries
assert_equal ['US'], BraintreeGateway.supported_countries
end
def test_supported_card_types
- assert_equal [:visa, :master, :american_express], BraintreeGateway.supported_cardtypes
+ assert_equal [:visa, :master, :american_express, :discover], BraintreeGateway.supported_cardtypes
end
def test_adding_store_adds_vault_id_flag
result = {}