Sha256: 6f013ea0e674955e0ff9295b1fd4e3e99360a1b7be79b50b4fcd21e0f07c107a
Contents?: true
Size: 911 Bytes
Versions: 16
Compression:
Stored size: 911 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper") describe Braintree::Transaction::LiabilityShift do describe "#initialize" do it "sets responsible party and conditions" do liability_shift = Braintree::Transaction::LiabilityShift.new( :responsible_party => "paypal", :conditions => ["unauthorized","item_not_received"], ) expect(liability_shift.responsible_party).to eql "paypal" expect(liability_shift.conditions.first).to eql "unauthorized" end end describe "inspect" do it "prints the attributes" do details = Braintree::Transaction::LiabilityShift.new( :responsible_party => "paypal", :conditions => ["unauthorized","item_not_received"], ) expect(details.inspect).to eql %(#<LiabilityShift responsible_party: "paypal", conditions: ["unauthorized", "item_not_received"]>) end end end
Version data entries
16 entries across 16 versions & 1 rubygems