mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
fix existing tests
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user