spec/integration/braintree/customer_spec.rb in braintree-2.84.0 vs spec/integration/braintree/customer_spec.rb in braintree-2.85.0

- old
+ new

@@ -454,11 +454,11 @@ :venmo_sdk_session => Braintree::Test::VenmoSDK::Session } } ) result.success?.should == true - result.customer.credit_cards.first.venmo_sdk?.should == true + result.customer.credit_cards.first.venmo_sdk?.should == false end end context "client API" do it "can create a customer with a payment method nonce" do @@ -971,23 +971,28 @@ venmo_account.username.should_not be_nil end it "returns associated us bank accounts" do result = Braintree::Customer.create( - :payment_method_nonce => generate_valid_us_bank_account_nonce + :payment_method_nonce => generate_non_plaid_us_bank_account_nonce, + :credit_card => { + :options => { + :verification_merchant_account_id => SpecHelper::UsBankMerchantAccountId, + } + } ) result.should be_success found_customer = Braintree::Customer.find(result.customer.id) found_customer.us_bank_accounts.size.should == 1 found_customer.payment_methods.size.should == 1 us_bank_account = found_customer.us_bank_accounts.first us_bank_account.should be_a(Braintree::UsBankAccount) us_bank_account.routing_number.should == "021000021" - us_bank_account.last_4.should == "1234" + us_bank_account.last_4.should == "0000" us_bank_account.account_type.should == "checking" - us_bank_account.account_holder_name.should == "Dan Schulman" + us_bank_account.account_holder_name.should == "John Doe" us_bank_account.bank_name.should =~ /CHASE/ end it "works for a blank customer" do created_customer = Braintree::Customer.create!