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-3.3.0 spec/integration/braintree/error_codes_spec.rb
braintree-3.2.0 spec/integration/braintree/error_codes_spec.rb
braintree-3.1.0 spec/integration/braintree/error_codes_spec.rb
braintree-3.0.1 spec/integration/braintree/error_codes_spec.rb
braintree-2.104.1 spec/integration/braintree/error_codes_spec.rb
braintree-2.104.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.103.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.102.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.101.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.100.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.99.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.98.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.97.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.96.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.95.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.94.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.93.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.92.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.91.0 spec/integration/braintree/error_codes_spec.rb
braintree-2.90.0 spec/integration/braintree/error_codes_spec.rb