Add column for variant description to BOM

This commit is contained in:
Rob H
2014-01-17 17:32:29 +08:00
parent d6b4f8129c
commit 0e861d98af
2 changed files with 9 additions and 1 deletions

View File

@@ -14,8 +14,10 @@
%th.email Email
%th.date Order Date
%th.producer Producer
%th.variant Product (Unit): Var
%tr.line_item{ 'ng-repeat' => 'line_item in lineItems', 'ng-class-even' => "'even'", 'ng-class-odd' => "'odd'" }
%td.id {{ line_item.id }}
%td.email {{ line_item.order.email }}
%td.date {{ line_item.order.completed_at }}
%td.producer {{ line_item.supplier.name }}
%td.producer {{ line_item.supplier.name }}
%td.variant {{ line_item.variant_unit_text }}

View File

@@ -62,6 +62,12 @@ feature %q{
page.should have_selector "td.producer", text: li1.product.supplier.name, :visible => true
page.should have_selector "td.producer", text: li2.product.supplier.name, :visible => true
end
it "displays a column for variant description" do
page.should have_selector "th.variant", text: "PRODUCT (UNIT): VAR", :visible => true
page.should have_selector "td.variant", text: li1.product.name, :visible => true
page.should have_selector "td.variant", text: li2.product.name, :visible => true
end
end
end
end