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