spec/integration/braintree/transaction_spec.rb in braintree-4.22.0 vs spec/integration/braintree/transaction_spec.rb in braintree-4.23.0
- old
+ new
@@ -4858,30 +4858,9 @@
expect(result.transaction.network_transaction_id).not_to be_nil
end
end
context "external vault" do
- it "returns a validation error if used with an unsupported instrument type" do
- customer = Braintree::Customer.create!
- result = Braintree::PaymentMethod.create(
- :payment_method_nonce => Braintree::Test::Nonce::PayPalBillingAgreement,
- :customer_id => customer.id,
- )
- payment_method_token = result.payment_method.token
-
- result = Braintree::Transaction.create(
- :type => "sale",
- :customer_id => customer.id,
- :payment_method_token => payment_method_token,
- :external_vault => {
- :status => Braintree::Transaction::ExternalVault::Status::WillVault,
- },
- :amount => "10.00",
- )
- expect(result.success?).to eq(false)
- expect(result.errors.for(:transaction)[0].code).to eq(Braintree::ErrorCodes::Transaction::PaymentInstrumentWithExternalVaultIsInvalid)
- end
-
it "reject invalid status" do
result = Braintree::Transaction.create(
:type => "sale",
:credit_card => {
:number => Braintree::Test::CreditCardNumbers::MasterCard,