Update fee fetching in controller tests

This commit is contained in:
Matt-Yorkley
2021-02-11 13:55:54 +00:00
parent 65bcf83552
commit f94f424b63

View File

@@ -277,7 +277,7 @@ describe Spree::OrdersController, type: :controller do
allow(Spree::Config).to receive(:shipping_tax_rate) { 0.25 }
# Sanity check the fees
expect(order.adjustments.length).to eq 2
expect(order.all_adjustments.length).to eq 2
expect(item_num).to eq 2
expect(order.adjustment_total).to eq expected_fees
expect(order.shipment.adjustment.included_tax).to eq 1.2