spec/integration/braintree/error_codes_spec.rb in braintree-3.3.0 vs spec/integration/braintree/error_codes_spec.rb in braintree-3.4.0
- old
+ new
@@ -4,10 +4,10 @@
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