mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Fix block too long warnings
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user