Sha256: d834f5fddee8330f519c155928ce9620544f154f8ec2f240b450a13311e02d71

Contents?: true

Size: 569 Bytes

Versions: 120

Compression:

Stored size: 569 Bytes

Contents

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

describe Braintree::ErrorCodes do
  describe Braintree::ErrorCodes::CreditCard do
    it "returns CardholderNameIsTooLong when cardholder name is too long" do
      result = Braintree::Customer.create(
        :credit_card => {
          :cardholder_name => "x" * 256
        }
      )
      result.success?.should == false
      result.errors.for(:customer).for(:credit_card).map { |e| e.code }.should \
        include(Braintree::ErrorCodes::CreditCard::CardholderNameIsTooLong)
    end
  end
end

Version data entries

120 entries across 120 versions & 1 rubygems

Version Path
braintree-2.33.1 spec/integration/braintree/error_codes_spec.rb
braintree-2.33.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.32.1 spec/integration/braintree/error_codes_spec.rb
braintree-2.31.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.30.2 spec/integration/braintree/error_codes_spec.rb
braintree-2.30.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.29.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.28.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.27.1 spec/integration/braintree/error_codes_spec.rb
braintree-2.27.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.26.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.25.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.24.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.23.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.22.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.21.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.20.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.19.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.18.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.17.0 spec/integration/braintree/error_codes_spec.rb