From 1c2aa1c370cf8a970fda2d6f874c315db2edcdb7 Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Wed, 11 Oct 2023 10:55:14 +0100 Subject: [PATCH] fix linter issue --- app/models/invoice/data_presenter.rb | 2 +- spec/system/admin/invoice_print_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/invoice/data_presenter.rb b/app/models/invoice/data_presenter.rb index 3ad7d80626..b710056062 100644 --- a/app/models/invoice/data_presenter.rb +++ b/app/models/invoice/data_presenter.rb @@ -72,7 +72,7 @@ class Invoice tax_adjustment_totals.map do |tax_rate_id, tax_amount| tax_rate = tax_rate_by_id[tax_rate_id] { - amount: Spree::Money.new(tax_amount, currency: currency), + amount: Spree::Money.new(tax_amount, currency:), percentage: number_to_percentage(tax_rate.amount * 100, precision: 1), rate_amount: tax_rate.amount, } diff --git a/spec/system/admin/invoice_print_spec.rb b/spec/system/admin/invoice_print_spec.rb index f323eee21a..d5d66774cf 100644 --- a/spec/system/admin/invoice_print_spec.rb +++ b/spec/system/admin/invoice_print_spec.rb @@ -85,7 +85,7 @@ describe ' order.payments << create(:payment, :completed, order:, payment_method: payment_method1, created_at: 1.day.ago) - order.payments << create(:payment, order: order, state: 'failed', + order.payments << create(:payment, order:, state: 'failed', payment_method: payment_method2, created_at: 2.days.ago) order.save!