fix existing tests

This commit is contained in:
Mohamed ABDELLANI
2023-03-03 11:17:03 +01:00
parent 7eca32e84f
commit 89eb3a1967
2 changed files with 4 additions and 4 deletions

View File

@@ -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,

View File

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