mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Simplify test of adjustments
This commit is contained in:
@@ -145,11 +145,8 @@ describe CheckoutHelper, type: :helper do
|
||||
adjustments = helper.checkout_adjustments_for(order)
|
||||
|
||||
shipping_adjustment = order.shipment_adjustments.first
|
||||
expect(adjustments).to include shipping_adjustment
|
||||
|
||||
admin_fee_summary = adjustments.reject { |a| a.id == shipping_adjustment.id }.first
|
||||
expect(admin_fee_summary.label).to eq "Enterprise Fee"
|
||||
expect(admin_fee_summary.amount).to eq 123
|
||||
expect(adjustments).to match_array [shipping_adjustment, fee_adjustment]
|
||||
end
|
||||
|
||||
context "tax rate adjustments" do
|
||||
|
||||
Reference in New Issue
Block a user