spec/unit/braintree/transaction/paypal_details_spec.rb in braintree-3.0.1 vs spec/unit/braintree/transaction/paypal_details_spec.rb in braintree-3.1.0

- old
+ new

@@ -3,10 +3,11 @@ describe Braintree::Transaction::PayPalDetails do describe "initialize" do it "sets all fields" do details = Braintree::Transaction::PayPalDetails.new( :authorization_id => "id", + :billing_agreement_id => "billing-agreement-id", :capture_id => "capture-id", :custom_field => "custom-field", :debug_id => "debug-id", :description => "description", :image_url => "www.image.com", @@ -28,9 +29,10 @@ :transaction_fee_amount => "2.00", :transaction_fee_currency_iso_code => "123" ) expect(details.authorization_id).to eq("id") + expect(details.billing_agreement_id).to eq("billing-agreement-id") expect(details.capture_id).to eq("capture-id") expect(details.custom_field).to eq("custom-field") expect(details.debug_id).to eq("debug-id") expect(details.description).to eq("description") expect(details.image_url).to eq("www.image.com")