From 89eb3a1967f71eb75f887cbb1a8d4d49d79400f2 Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Fri, 3 Mar 2023 11:17:03 +0100 Subject: [PATCH] fix existing tests --- .../enterprise_fee_summary_report_spec.rb | 6 +++--- spec/models/spree/adjustment_spec.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/lib/reports/enterprise_fee_summary/enterprise_fee_summary_report_spec.rb b/spec/lib/reports/enterprise_fee_summary/enterprise_fee_summary_report_spec.rb index f36faea77e..58711f74ba 100644 --- a/spec/lib/reports/enterprise_fee_summary/enterprise_fee_summary_report_spec.rb +++ b/spec/lib/reports/enterprise_fee_summary/enterprise_fee_summary_report_spec.rb @@ -319,9 +319,9 @@ describe Reporting::Reports::EnterpriseFeeSummary::Base do amount: 15) end let!(:coordinator_fee_inheriting_product_tax_category) do - create(:enterprise_fee, :flat_rate, name: "Coordinator Fee B", enterprise: coordinator, - fee_type: "admin", inherits_tax_category: true, - amount: 20) + create(:enterprise_fee, :per_item, name: "Coordinator Fee B", enterprise: coordinator, + fee_type: "admin", inherits_tax_category: true, + amount: 20) end let!(:coordinator_fee_without_tax) do create(:enterprise_fee, :flat_rate, name: "Coordinator Fee C", enterprise: coordinator, diff --git a/spec/models/spree/adjustment_spec.rb b/spec/models/spree/adjustment_spec.rb index 2dde510c6e..87576411db 100644 --- a/spec/models/spree/adjustment_spec.rb +++ b/spec/models/spree/adjustment_spec.rb @@ -426,7 +426,7 @@ module Spree context "when enterprise fees are taxed per-order" do let(:enterprise_fee) { - create(:enterprise_fee, enterprise: coordinator, inherits_tax_category: true, + create(:enterprise_fee, enterprise: coordinator, inherits_tax_category: false, calculator: ::Calculator::FlatRate.new(preferred_amount: 50.0)) }