spec/integration/braintree/credit_card_spec.rb in braintree-2.65.0 vs spec/integration/braintree/credit_card_spec.rb in braintree-2.66.0
- old
+ new
@@ -332,10 +332,11 @@
:expiration_date => "05/2014",
:options => {:verify_card => true}
)
credit_card = result.credit_card
credit_card.healthcare.should == Braintree::CreditCard::Healthcare::Yes
+ credit_card.product_id.should == "J3"
end
it "sets the durbin regulated field if the card is durbin regulated" do
customer = Braintree::Customer.create!
result = Braintree::CreditCard.create(
@@ -358,11 +359,11 @@
)
credit_card = result.credit_card
credit_card.country_of_issuance.should == Braintree::Test::CreditCardDefaults::CountryOfIssuance
end
- it "sets the issuing bank field" do
+ it "sets the issuing bank field" do
customer = Braintree::Customer.create!
result = Braintree::CreditCard.create(
:customer_id => customer.id,
:number => Braintree::Test::CreditCardNumbers::CardTypeIndicators::IssuingBank,
:expiration_date => "05/2014",
@@ -380,10 +381,11 @@
:expiration_date => "05/2014",
:options => {:verify_card => true}
)
credit_card = result.credit_card
credit_card.payroll.should == Braintree::CreditCard::Payroll::Yes
+ credit_card.product_id.should == "MSA"
end
it "sets the debit field if the card is debit" do
customer = Braintree::Customer.create!
result = Braintree::CreditCard.create(
@@ -421,10 +423,11 @@
credit_card.commercial.should == Braintree::CreditCard::Prepaid::No
credit_card.payroll.should == Braintree::CreditCard::Prepaid::No
credit_card.debit.should == Braintree::CreditCard::Prepaid::No
credit_card.durbin_regulated.should == Braintree::CreditCard::Prepaid::No
credit_card.healthcare.should == Braintree::CreditCard::Prepaid::No
+ credit_card.product_id.should == "MSB"
end
it "doesn't set the card type identifiers for an un-identified card" do
customer = Braintree::Customer.create!
result = Braintree::CreditCard.create(
@@ -440,9 +443,10 @@
credit_card.debit.should == Braintree::CreditCard::Prepaid::Unknown
credit_card.durbin_regulated.should == Braintree::CreditCard::Prepaid::Unknown
credit_card.healthcare.should == Braintree::CreditCard::Prepaid::Unknown
credit_card.country_of_issuance == Braintree::CreditCard::CountryOfIssuance::Unknown
credit_card.issuing_bank == Braintree::CreditCard::IssuingBank::Unknown
+ credit_card.product_id == Braintree::CreditCard::ProductId::Unknown
end
end
context "venmo_sdk" do
describe "venmo_sdk_payment_method_code" do