Sha256: 699ba08751cd13df0076135f349aa73606d25076341ff664ac6c54b25dc2d82b

Contents?: true

Size: 719 Bytes

Versions: 14

Compression:

Stored size: 719 Bytes

Contents

require File.dirname(__FILE__) + "/../../spec_helper"

describe Braintree::Transaction::CustomerDetails do
  describe "inspect" do
    it "inspects" do
      details = Braintree::Transaction::CustomerDetails.new(
        :id => "id",
        :first_name => "Amy",
        :last_name => "Smith",
        :email => "amy.smith@example.com",
        :company => "Smith Co.",
        :website => "http://www.example.com",
        :phone => "6145551234",
        :fax => "3125551234"
      )
      details.inspect.should == %(#<id: "id", first_name: "Amy", last_name: "Smith", email: "amy.smith@example.com", company: "Smith Co.", website: "http://www.example.com", phone: "6145551234", fax: "3125551234">)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
braintree-2.6.0 spec/unit/braintree/transaction/customer_details_spec.rb
braintree-2.5.2 spec/unit/braintree/transaction/customer_details_spec.rb
braintree-2.5.1 spec/unit/braintree/transaction/customer_details_spec.rb
braintree-2.4.0 spec/unit/braintree/transaction/customer_details_spec.rb
braintree-2.3.1 spec/unit/braintree/transaction/customer_details_spec.rb
braintree-2.2.0 spec/unit/braintree/transaction/customer_details_spec.rb
braintree-2.1.0 spec/unit/braintree/transaction/customer_details_spec.rb
braintree-2.0.0 spec/unit/braintree/transaction/customer_details_spec.rb
braintree-1.2.1 spec/unit/braintree/transaction/customer_details_spec.rb
braintree-1.2.0 spec/unit/braintree/transaction/customer_details_spec.rb
braintree-1.1.3 spec/unit/braintree/transaction/customer_details_spec.rb
braintree-1.1.2 spec/unit/braintree/transaction/customer_details_spec.rb
braintree-1.1.1 spec/unit/braintree/transaction/customer_details_spec.rb
braintree-1.1.0 spec/unit/braintree/transaction/customer_details_spec.rb