Sha256: 2b00d07bd918ef343b53aa163d47f34b924148bdc1714cfe3140299153d27e55

Contents?: true

Size: 619 Bytes

Versions: 5

Compression:

Stored size: 619 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,
      )
      details.valid?.should == true
    end
    it "returns true if disbursement details are initialized" do
      details = Braintree::Transaction::DisbursementDetails.new(
        :disbursement_date => nil,
      )
      details.valid?.should == false
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
braintree-4.14.0 spec/unit/braintree/transaction/deposit_details_spec.rb
braintree-4.13.0 spec/unit/braintree/transaction/deposit_details_spec.rb
braintree-4.12.0 spec/unit/braintree/transaction/deposit_details_spec.rb
braintree-4.11.0 spec/unit/braintree/transaction/deposit_details_spec.rb
braintree-4.10.0 spec/unit/braintree/transaction/deposit_details_spec.rb