Making lettuceshare report spec more robust

This commit is contained in:
Rob Harrington
2015-12-16 18:14:19 +11:00
parent 18ea0c1717
commit cc4f9dd09b

View File

@@ -62,7 +62,7 @@ module OpenFoodNetwork
report.stub(:params) { {distributor_id: hub.id} }
rows = report.send(:table)
rows.count.should eq 2
rows[1][0].should eq v2.product.name
rows.map{ |row| row[0] }.should include v.product.name, v2.product.name
end
end