Fix block too long warnings

This commit is contained in:
Jean-Baptiste Bellet
2022-09-19 09:26:34 +02:00
parent 8c8b262ea1
commit 7186526dc6

View File

@@ -311,47 +311,12 @@ describe "Orders And Fulfillment" do
rows = find("table.report__table").all("tbody tr")
table = rows.map { |r| r.all("td").map { |c| c.text.strip } }
expect(table[0]).to eq([
"Supplier Name",
"Baked Beans",
"1g Small, S",
"Distributor Name",
"7",
"10.0",
"70.0",
"UPS Ground"
])
expect(table[1]).to eq([
"",
"",
"",
"TOTAL",
"7",
"",
"70.0",
""
])
expect(table[2]).to eq([
"Supplier Name",
"Baked Beans",
"1g Big, S",
"Distributor Name",
"3",
"10.0",
"30.0",
"UPS Ground"
])
expect(table[3]).to eq([
"",
"",
"",
"TOTAL",
"3",
"",
"30.0",
""
])
expect(table[0]).to eq(["Supplier Name", "Baked Beans", "1g Small, S",
"Distributor Name", "7", "10.0", "70.0", "UPS Ground"])
expect(table[1]).to eq(["", "", "", "TOTAL", "7", "", "70.0", ""])
expect(table[2]).to eq(["Supplier Name", "Baked Beans", "1g Big, S",
"Distributor Name", "3", "10.0", "30.0", "UPS Ground"])
expect(table[3]).to eq(["", "", "", "TOTAL", "3", "", "30.0", ""])
end
end
@@ -446,51 +411,13 @@ describe "Orders And Fulfillment" do
rows = find("table.report__table").all("tbody tr")
table = rows.map { |r| r.all("td").map { |c| c.text.strip } }
expect(table[0]).to eq([
"Distributor Name",
"Another Supplier Name",
"Salted Peanuts",
"1g Bag, S",
"2",
"10.0",
"20.0",
"",
"UPS Ground"
])
expect(table[1]).to eq([
"Distributor Name",
"Supplier Name",
"Baked Beans",
"1g Small, S",
"3",
"10.0",
"30.0",
"",
"UPS Ground"
])
expect(table[2]).to eq([
"Distributor Name",
"Supplier Name",
"Baked Beans",
"1g Big, S",
"3",
"10.0",
"30.0",
"",
"UPS Ground"
])
expect(table[3]).to eq([
"",
"",
"",
"",
"",
"TOTAL",
"80.0",
"0.0",
""
])
expect(table[0]).to eq(["Distributor Name", "Another Supplier Name", "Salted Peanuts",
"1g Bag, S", "2", "10.0", "20.0", "", "UPS Ground"])
expect(table[1]).to eq(["Distributor Name", "Supplier Name", "Baked Beans",
"1g Small, S", "3", "10.0", "30.0", "", "UPS Ground"])
expect(table[2]).to eq(["Distributor Name", "Supplier Name", "Baked Beans",
"1g Big, S", "3", "10.0", "30.0", "", "UPS Ground"])
expect(table[3]).to eq(["", "", "", "", "", "TOTAL", "80.0", "0.0", ""])
end
end