Sha256: 169aa45a4e7e3c63c0d8eba873cc8a91816b93ec1e5a332c2e71a2dec5497ef5

Contents?: true

Size: 629 Bytes

Versions: 9

Compression:

Stored size: 629 Bytes

Contents

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

describe Braintree::Transaction::DisbursementDetails do
  describe "valid?" do
    it "returns true if disbursement details are initialized" do
      details = Braintree::Transaction::DisbursementDetails.new(
        :disbursement_date => Date.new(2013, 4, 1).to_s,
      )
      expect(details.valid?).to eq(true)
    end
    it "returns true if disbursement details are initialized" do
      details = Braintree::Transaction::DisbursementDetails.new(
        :disbursement_date => nil,
      )
      expect(details.valid?).to eq(false)
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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