mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Get adjustment which is not the shipping one
This commit is contained in:
committed by
Konrad
parent
72df2867d4
commit
77e644e3d4
@@ -147,7 +147,7 @@ describe CheckoutHelper, type: :helper do
|
||||
shipping_adjustment = order.shipment_adjustments.first
|
||||
expect(adjustments).to include shipping_adjustment
|
||||
|
||||
admin_fee_summary = adjustments.last
|
||||
admin_fee_summary = adjustments.reject { |a| a.id == shipping_adjustment.id }.first
|
||||
expect(admin_fee_summary.label).to eq "Shipping"
|
||||
expect(admin_fee_summary.amount).to eq 123
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user