From be0eb5f5f986bb4790d3d03a728a54ffbc49abb2 Mon Sep 17 00:00:00 2001 From: Andy Brett Date: Thu, 8 Apr 2021 14:39:30 -0700 Subject: [PATCH] ignore nil in payment report spec expectation --- spec/features/admin/reports/payments_report_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/admin/reports/payments_report_spec.rb b/spec/features/admin/reports/payments_report_spec.rb index 11c828593e..8ed50fcf70 100644 --- a/spec/features/admin/reports/payments_report_spec.rb +++ b/spec/features/admin/reports/payments_report_spec.rb @@ -56,7 +56,7 @@ describe "Payments Reports" do order.ship_total.to_f + other_order.ship_total.to_f, order.outstanding_balance.to_f + other_order.outstanding_balance.to_f, order.total.to_f + other_order.total.to_f - ].join(" ")) + ].compact.join(" ")) end end