From f36ca77f5f39af1cf80660a4b7fc57cbe53dff17 Mon Sep 17 00:00:00 2001 From: Maikel Linke Date: Mon, 24 Jul 2023 13:31:09 +1000 Subject: [PATCH] Ease reading with related spec values on one line --- spec/system/admin/adjustments_spec.rb | 32 +++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/spec/system/admin/adjustments_spec.rb b/spec/system/admin/adjustments_spec.rb index 228fb75c3e..6494e02bad 100644 --- a/spec/system/admin/adjustments_spec.rb +++ b/spec/system/admin/adjustments_spec.rb @@ -67,25 +67,25 @@ describe ' context "included tax" do context "adding negative, taxed adjustments to an order" do - it_behaves_like "when the enable_localized_number preference", "Discount", "-2", "TVA 20%", - "$0.33", "$-1.67" + it_behaves_like "when the enable_localized_number preference", + "Discount", "-2", "TVA 20%", "$0.33", "$-1.67" end context "adding positive, taxed adjustments to an order" do - it_behaves_like "when the enable_localized_number preference", "Late fee", "100", - "TVA 20%", "$-16.67", "$83.33" + it_behaves_like "when the enable_localized_number preference", + "Late fee", "100", "TVA 20%", "$-16.67", "$83.33" end end context "added tax" do context "adding negative, taxed adjustments to an order" do - it_behaves_like "when the enable_localized_number preference", "Discount", "-2", "GST", - "$10.00", "$8.00" + it_behaves_like "when the enable_localized_number preference", + "Discount", "-2", "GST", "$10.00", "$8.00" end context "adding positive, taxed adjustments to an order" do - it_behaves_like "when the enable_localized_number preference", "Late fee", "110", "GST", - "$10.00", "$120" + it_behaves_like "when the enable_localized_number preference", + "Late fee", "110", "GST", "$10.00", "$120" end end end @@ -97,25 +97,25 @@ describe ' context "included tax" do context "adding negative, taxed adjustments to an order" do - it_behaves_like "when the enable_localized_number preference", "Discount", "-2", "TVA 20%", - "$0.33", "$-1.67" + it_behaves_like "when the enable_localized_number preference", + "Discount", "-2", "TVA 20%", "$0.33", "$-1.67" end context "adding positive, taxed adjustments to an order" do - it_behaves_like "when the enable_localized_number preference", "Late fee", "100", - "TVA 20%", "$-16.67", "$83.33" + it_behaves_like "when the enable_localized_number preference", + "Late fee", "100", "TVA 20%", "$-16.67", "$83.33" end end context "added tax" do context "adding negative, taxed adjustments to an order" do - it_behaves_like "when the enable_localized_number preference", "Discount", "-2", "GST", - "$10.00", "$8.00" + it_behaves_like "when the enable_localized_number preference", + "Discount", "-2", "GST", "$10.00", "$8.00" end context "adding positive, taxed adjustments to an order" do - it_behaves_like "when the enable_localized_number preference", "Late fee", "110", "GST", - "$10.00", "$120" + it_behaves_like "when the enable_localized_number preference", + "Late fee", "110", "GST", "$10.00", "$120" end end end