From 5c5a115daa8a046d7748148d82b32adae29952e6 Mon Sep 17 00:00:00 2001 From: David Cook Date: Wed, 2 Apr 2025 10:38:47 +1100 Subject: [PATCH] Fix typo --- spec/services/orders/handle_fees_service_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/services/orders/handle_fees_service_spec.rb b/spec/services/orders/handle_fees_service_spec.rb index b730abb4c1..97c43d842b 100644 --- a/spec/services/orders/handle_fees_service_spec.rb +++ b/spec/services/orders/handle_fees_service_spec.rb @@ -63,14 +63,14 @@ RSpec.describe Orders::HandleFeesService do describe "#create_or_update_line_item_fees!" do context "with no existing fee" do - it "creates per line item fee adjustments for line items in the order cylce" do + it "creates per line item fee adjustments for line items in the order cycle" do allow(service).to receive(:provided_by_order_cycle?) { true } expect(calculator).to receive(:create_line_item_adjustments_for).with(line_item) service.create_or_update_line_item_fees! end - it "does not create fee if variant not in Order Cyle" do + it "does not create fee if variant not in Order Cycle" do allow(service).to receive(:provided_by_order_cycle?) { false } expect(calculator).not_to receive(:create_line_item_adjustments_for).with(line_item) @@ -215,7 +215,7 @@ RSpec.describe Orders::HandleFeesService do end end - context "with a new enterprise fee added to the order cylce" do + context "with a new enterprise fee added to the order cycle" do let(:new_fee) { create(:enterprise_fee, enterprise: fee.enterprise) } let(:fee_applicator2) { OpenFoodNetwork::EnterpriseFeeApplicator.new(new_fee, line_item.variant, role)