mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Per review, specify the actual expected value
This commit is contained in:
@@ -1238,8 +1238,7 @@ RSpec.describe Spree::Order do
|
||||
|
||||
order.update_shipping_fees!
|
||||
|
||||
item_num = order.line_items.sum(&:quantity)
|
||||
expect(order.reload.adjustment_total).to eq(item_num * shipping_fee)
|
||||
expect(order.reload.adjustment_total).to eq(15) # 3 items * 5
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user