spec/unit/braintree/transaction_spec.rb in braintree-2.20.0 vs spec/unit/braintree/transaction_spec.rb in braintree-2.21.0
- old
+ new
@@ -93,19 +93,34 @@
:bin => "411111",
:last_4 => "1111",
:card_type => "Visa",
:expiration_month => "08",
:expiration_year => "2009",
- :customer_location => "US"
+ :customer_location => "US",
+ :prepaid => "Yes",
+ :healthcare => "Yes",
+ :durbin_regulated => "Yes",
+ :debit => "Yes",
+ :commercial => "No",
+ :payroll => "Unknown",
+ :country_of_issuance => "Narnia",
+ :issuing_bank => "Mr Tumnus"
}
)
transaction.credit_card_details.token.should == "mzg2"
transaction.credit_card_details.bin.should == "411111"
transaction.credit_card_details.last_4.should == "1111"
transaction.credit_card_details.card_type.should == "Visa"
transaction.credit_card_details.expiration_month.should == "08"
transaction.credit_card_details.expiration_year.should == "2009"
transaction.credit_card_details.customer_location.should == "US"
+ transaction.credit_card_details.prepaid.should == Braintree::CreditCard::Prepaid::Yes
+ transaction.credit_card_details.healthcare.should == Braintree::CreditCard::Healthcare::Yes
+ transaction.credit_card_details.durbin_regulated.should == Braintree::CreditCard::DurbinRegulated::Yes
+ transaction.credit_card_details.debit.should == Braintree::CreditCard::Debit::Yes
+ transaction.credit_card_details.commercial.should == Braintree::CreditCard::Commercial::No
+ transaction.credit_card_details.country_of_issuance.should == "Narnia"
+ transaction.credit_card_details.issuing_bank.should == "Mr Tumnus"
end
it "sets up history attributes in status_history" do
time = Time.utc(2010,1,14)
transaction = Braintree::Transaction._new(