From 33feb7f63f4e6f673e7625641ca1637a17ae263e Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Tue, 30 Aug 2022 11:10:40 +1000 Subject: [PATCH] Test for explicit values, not reusing faulty code --- spec/system/admin/order_print_ticket_spec.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/spec/system/admin/order_print_ticket_spec.rb b/spec/system/admin/order_print_ticket_spec.rb index 18c2c2aede..0024a93478 100644 --- a/spec/system/admin/order_print_ticket_spec.rb +++ b/spec/system/admin/order_print_ticket_spec.rb @@ -92,10 +92,7 @@ describe ' end def taxes_in_print_data - display_checkout_taxes_hash(order).map { |tax_rate, tax_value| - [tax_rate, - tax_value.format(with_currency: false)] - } + [["10.0%", "$11.00"]] end end end