Ease reading with related spec values on one line

This commit is contained in:
Maikel Linke
2023-07-24 13:31:09 +10:00
parent a677444a97
commit f36ca77f5f

View File

@@ -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