Fix Rubocop InverseOf offense in Order

- also fix failing spec due to adding inverse
This commit is contained in:
cyrillefr
2025-04-03 12:39:06 +02:00
parent a7c77dc894
commit 019c703b1c
3 changed files with 2 additions and 9 deletions

View File

@@ -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!)