Sha256: 1148b068a329d780548c14d6cd6b6a0c9425bb24038780aae63af78ed1501bb0
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
require File.expand_path(File.dirname(__FILE__) + "/../spec_helper") describe Braintree::MerchantAccount do describe "#inspect" do it "is a string representation of the merchant account" do account = Braintree::MerchantAccount._new(nil, :id => "merchant_account", :status => "active", :master_merchant_account => nil) account.inspect.should == "#<Braintree::MerchantAccount: id: \"merchant_account\", status: \"active\", master_merchant_account: nil>" end it "handles a master merchant account" do account = Braintree::MerchantAccount._new( nil, :id => "merchant_account", :status => "active", :master_merchant_account => {:id => "master_merchant_account", :status => "active", :master_merchant_account => nil} ) master_merchant_account = "#<Braintree::MerchantAccount: id: \"master_merchant_account\", status: \"active\", master_merchant_account: nil>" account.inspect.should == "#<Braintree::MerchantAccount: id: \"merchant_account\", status: \"active\", master_merchant_account: #{master_merchant_account}>" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
braintree-2.26.0 | spec/unit/braintree/merchant_account_spec.rb |
braintree-2.25.0 | spec/unit/braintree/merchant_account_spec.rb |