Sha256: 56143ca17fa2313b4c5ec6efc3e61f927bdbe2f83082cb572bbab5bce3371d5f
Contents?: true
Size: 1.07 KB
Versions: 27
Compression:
Stored size: 1.07 KB
Contents
require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper") describe Braintree::Transaction::Installment do describe "inspect" do it "assigns all fields" do adjustment_attributes = { :amount => "0.98", :kind => "REFUND", :projected_disbursement_date => "2020-01-03 01:02:03Z", :actual_disbursement_date => "2020-01-04 01:02:03Z", } installment_attributes = { :id => "abc123", :amount => "1.23", :projected_disbursement_date => "2020-01-01 01:02:03Z", :actual_disbursement_date => "2020-01-02 01:02:03Z", :adjustments => [adjustment_attributes], } installment = Braintree::Transaction::Installment.new(installment_attributes) expect(installment.inspect).to eq('#<id: "abc123", amount: 0.123e1, projected_disbursement_date: "2020-01-01 01:02:03Z", actual_disbursement_date: "2020-01-02 01:02:03Z", adjustments: [#<amount: 0.98e0, kind: "REFUND", projected_disbursement_date: "2020-01-03 01:02:03Z", actual_disbursement_date: "2020-01-04 01:02:03Z">]>') end end end
Version data entries
27 entries across 27 versions & 1 rubygems