From f44a4356c5f4fa79f41402048c4d126adfc5110c Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Mon, 19 Feb 2024 23:43:21 +0100 Subject: [PATCH] remove 0.0% if no tax rate applied to line items --- spec/system/admin/invoice_print_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/admin/invoice_print_spec.rb b/spec/system/admin/invoice_print_spec.rb index 45a6823706..c07d96ecfb 100644 --- a/spec/system/admin/invoice_print_spec.rb +++ b/spec/system/admin/invoice_print_spec.rb @@ -542,7 +542,7 @@ describe ' # first line item, no tax expect(page).to have_content Spree::Product.first.name.to_s expect(page).to have_content "($12,540.00 / kg)" # unit price - expect(page).to have_content "1 1g $12.54 $12.54 0.0% $12.54" + expect(page).to have_content "1 1g $12.54 $12.54 $12.54" # # second line item, included tax expect(page).to have_content Spree::Product.second.name.to_s expect(page).to have_content "($500,150.00 / kg)" # unit price @@ -645,7 +645,7 @@ describe ' # first line item, no tax expect(page).to have_content Spree::Product.first.name.to_s expect(page).to have_content "($12,540.00 / kg)" # unit price - expect(page).to have_content "1 1g $12.54 $12.54 0.0% $12.54" + expect(page).to have_content "1 1g $12.54 $12.54 $12.54" # second line item, included tax expect(page).to have_content Spree::Product.second.name.to_s expect(page).to have_content "($500,150.00 / kg)" # unit price