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.70.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.69.1 spec/integration/braintree/error_codes_spec.rb
braintree-2.69.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.68.2 spec/integration/braintree/error_codes_spec.rb
braintree-2.68.1 spec/integration/braintree/error_codes_spec.rb
braintree-2.68.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.67.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.66.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.65.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.64.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.63.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.62.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.61.1 spec/integration/braintree/error_codes_spec.rb
braintree-2.61.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.60.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.59.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.58.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.57.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.56.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.55.0 spec/integration/braintree/error_codes_spec.rb