mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-31 06:31:41 +00:00
Fix Rubocop InverseOf offense in Order
- also fix failing spec due to adding inverse
This commit is contained in:
@@ -189,8 +189,8 @@ RSpec.describe Spree::OrderContents do
|
||||
|
||||
subject.update_item(line_item, { quantity: 3 })
|
||||
end
|
||||
|
||||
it "updates the order's enterprise fees if completed" do
|
||||
order.shipments << create(:shipment)
|
||||
allow(order).to receive(:completed?) { true }
|
||||
expect(order).to receive(:update_order_fees!)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user