Mace moving table in supplier main board work and specced

This commit is contained in:
2014-05-28 17:26:47 +02:00
parent 8faf5f3c0a
commit 901c9ac5c8
12 changed files with 34 additions and 14 deletions
@@ -128,15 +128,17 @@ step "I click on the section main board section jumper" do
end
step "the active list changes to another table in another section" do
@other_section = create :section, supplier: @supplier
@other_section = create :section, supplier: @supplier, title: 'New Section'
@other_table = create :table, section: @other_section, supplier: @supplier, number: 65
@list.move_to_table! @other_table
end
step "the supplier main board table number should be updated to the new table number" do
binding.pry
expect( find(".list-row-#{@list.id} .table_number").text ).to eq "65"
expect( find(".order-row-#{@list.orders.first.id} .table_number").text ).to eq "65"
end
step "the supplier main board section name should be updated to the new section" do
expect( find(".list-row-#{@list.id} .section_title").text ).to eq "New Section"
expect( find(".order-row-#{@list.orders.first.id} .section_title").text ).to eq "New Section"
end