Sha256: e53c895900192777202c9cc5af0771f274706d72fa77f4ffee872b606ea8d986

Contents?: true

Size: 954 Bytes

Versions: 8

Compression:

Stored size: 954 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper")

describe Braintree::Transaction::LocalPaymentDetails do
  describe "initialize" do
    let(:params) do
      {
        capture_id: "a-capture-id",
        custom_field: "custom-field",
        debug_id: "debug-id",
        description: "description",
        funding_source: "ideal",
        implicitly_vaulted_payment_method_global_id: "global-id",
        implicitly_vaulted_payment_method_token: "payment-method-token",
        payer_id: "payer-id",
        payment_id: "payment-id",
        refund_from_transaction_fee_amount: "2.34",
        refund_from_transaction_fee_currency_iso_code: "EUR",
        refund_id: "a-refund-id",
        transaction_fee_amount: "12.34",
        transaction_fee_currency_iso_code: "EUR",
      }
    end

    subject { described_class.new(params) }

    it "sets all fields" do
      is_expected.to have_attributes(**params)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
braintree-4.22.0 spec/unit/braintree/transaction/local_payment_details_spec.rb
braintree-4.21.0 spec/unit/braintree/transaction/local_payment_details_spec.rb
braintree-4.20.0 spec/unit/braintree/transaction/local_payment_details_spec.rb
braintree-4.19.0 spec/unit/braintree/transaction/local_payment_details_spec.rb
braintree-4.18.0 spec/unit/braintree/transaction/local_payment_details_spec.rb
braintree-4.17.0 spec/unit/braintree/transaction/local_payment_details_spec.rb
braintree-4.16.0 spec/unit/braintree/transaction/local_payment_details_spec.rb
braintree-4.15.0 spec/unit/braintree/transaction/local_payment_details_spec.rb