spec/integration/braintree/credit_card_spec.rb in braintree-2.90.0 vs spec/integration/braintree/credit_card_spec.rb in braintree-2.91.0

- old
+ new

@@ -533,9 +533,23 @@ credit_card.bin.should == "411111" credit_card.last_4.should == "1111" credit_card.expiration_date.should == "11/2099" end end + + context "card_type" do + it "is set to Elo" do + customer = Braintree::Customer.create! + result = Braintree::CreditCard.create( + :customer_id => customer.id, + :number => Braintree::Test::CreditCardNumbers::Elo, + :expiration_date => "10/2020", + ) + result.success?.should == true + credit_card = result.credit_card + credit_card.card_type.should == Braintree::CreditCard::CardType::Elo + end + end end describe "self.create!" do it "returns the credit card if successful" do customer = Braintree::Customer.create!