spec/unit/braintree/error_result_spec.rb in braintree-2.10.1 vs spec/unit/braintree/error_result_spec.rb in braintree-2.10.2

- old
+ new

@@ -72,6 +72,19 @@ :transaction => nil ) result.inspect.should_not include("transaction") end end + + describe "payer_authentication_required?" do + it "is true if payer_authentication is in the response" do + result = Braintree::ErrorResult.new( + :gateway, + :payer_authentication => {:id => "public_id", :post_url => "post_url", :post_params => []}, + :errors => {}, + :verification => nil, + :transaction => nil + ) + result.payer_authentication_required?.should be_true + end + end end