Sha256: cdd670ef29ae374900d4195d52fc4c6f408b7740a6be2c3a95877fecde5916e5
Contents?: true
Size: 551 Bytes
Versions: 15
Compression:
Stored size: 551 Bytes
Contents
require 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
15 entries across 15 versions & 1 rubygems