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.54.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.50.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.49.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.48.1 spec/integration/braintree/error_codes_spec.rb
braintree-2.48.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.47.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.46.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.45.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.44.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.43.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.42.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.41.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.40.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.39.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.38.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.37.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.36.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.35.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.34.1 spec/integration/braintree/error_codes_spec.rb
braintree-2.34.0 spec/integration/braintree/error_codes_spec.rb