diff --git a/spec/services/paypal_items_builder_spec.rb b/spec/services/paypal_items_builder_spec.rb index c6eb0b6d08..86a6646878 100644 --- a/spec/services/paypal_items_builder_spec.rb +++ b/spec/services/paypal_items_builder_spec.rb @@ -56,6 +56,8 @@ describe PaypalItemsBuilder do amount: 23, originator: enterprise_fee, state: "closed") } + before { order.update! } + it "should add up to the order total, minus any additional tax and the shipping cost" do items_total = items.sum { |i| i[:Quantity] * i[:Amount][:value] } order_tax_total = order.all_adjustments.tax.additional.sum(:amount)