mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Ease reading with related spec values on one line
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user