Sha256: c0e52eb6a22956db3372149511d8daf7c6a875d11bb21704541cbd2169c9db75
Contents?: true
Size: 1.38 KB
Versions: 54
Compression:
Stored size: 1.38 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 describe "default?" do it "is an alias of default" do account = Braintree::MerchantAccount._new(nil, :default => false) account.default?.should == false account = Braintree::MerchantAccount._new(nil, :default => true) account.default?.should == true end end end
Version data entries
54 entries across 54 versions & 1 rubygems