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.89.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.88.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.87.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.86.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.85.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.84.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.83.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.82.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.81.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.80.1 spec/integration/braintree/error_codes_spec.rb
braintree-2.80.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.79.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.78.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.77.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.76.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.75.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.74.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.73.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.72.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.71.0 spec/integration/braintree/error_codes_spec.rb