Sha256: 9ac522e2982f8b1af056a324af7a99af5c6479d6a9c0fae0b0aa5bb42d25a9d1

Contents?: true

Size: 614 Bytes

Versions: 11

Compression:

Stored size: 614 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),
      )
      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

11 entries across 11 versions & 1 rubygems

Version Path
braintree-4.9.0 spec/unit/braintree/transaction/deposit_details_spec.rb
braintree-4.8.0 spec/unit/braintree/transaction/deposit_details_spec.rb
braintree-4.7.0 spec/unit/braintree/transaction/deposit_details_spec.rb
braintree-4.6.0 spec/unit/braintree/transaction/deposit_details_spec.rb
braintree-4.5.0 spec/unit/braintree/transaction/deposit_details_spec.rb
braintree-4.4.0 spec/unit/braintree/transaction/deposit_details_spec.rb
braintree-4.3.0 spec/unit/braintree/transaction/deposit_details_spec.rb
braintree-4.2.0 spec/unit/braintree/transaction/deposit_details_spec.rb
braintree-4.1.0 spec/unit/braintree/transaction/deposit_details_spec.rb
braintree-4.0.0 spec/unit/braintree/transaction/deposit_details_spec.rb
braintree-3.4.0 spec/unit/braintree/transaction/deposit_details_spec.rb