From 5a61722f8bb7c331c0fe5ca7fb97a75f951b07f4 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Thu, 12 Jan 2023 17:30:33 +0100 Subject: [PATCH] + force `FlatRate` as calculator for payment methods in spec --- .../enterprise_fee_summary_report_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 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 007667eb80..6ea086c7dd 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 @@ -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