spec/integration/braintree/transaction_spec.rb in braintree-2.34.1 vs spec/integration/braintree/transaction_spec.rb in braintree-2.35.0

- old
+ new

@@ -364,11 +364,11 @@ ) result.success?.should == true end - it "returns processor response code and text if declined" do + it "returns processor response code and text as well as the additional processor response if declined" do result = Braintree::Transaction.create( :type => "sale", :amount => Braintree::Test::TransactionAmounts::Decline, :credit_card => { :number => Braintree::Test::CreditCardNumbers::Visa, @@ -379,9 +379,10 @@ result.transaction.id.should =~ /^\w{6}$/ result.transaction.type.should == "sale" result.transaction.status.should == Braintree::Transaction::Status::ProcessorDeclined result.transaction.processor_response_code.should == "2000" result.transaction.processor_response_text.should == "Do Not Honor" + result.transaction.additional_processor_response.should == "2000 : Do Not Honor" end it "accepts all four country codes" do result = Braintree::Transaction.sale( :amount => "100",