+ force FlatRate as calculator for payment methods in spec

This commit is contained in:
Jean-Baptiste Bellet
2023-01-12 17:30:33 +01:00
parent 719025f98e
commit 5a61722f8b

View File

@@ -646,12 +646,12 @@ describe Reporting::Reports::EnterpriseFeeSummary::Base do
describe "for specified payment methods" do
let!(:payment_method_a) do
method = create(:payment_method, name: "Payment A", distributors: [distributor])
method = create(:payment_method, :flat_rate, name: "Payment A", distributors: [distributor])
method.calculator.update_attribute(:preferred_amount, 1)
method
end
let!(:payment_method_b) do
method = create(:payment_method, name: "Payment B", distributors: [distributor])
method = create(:payment_method, :flat_rate, name: "Payment B", distributors: [distributor])
method.calculator.update_attribute(:preferred_amount, 1)
method
end