Greenification of the specs
This commit is contained in:
@@ -14,8 +14,9 @@ step "the user indicates in the popup that he wants to change the table" do
|
||||
end
|
||||
|
||||
step "the user should see the supplier menu having the other table as base" do
|
||||
#route_should_be 'user#list_products'
|
||||
page.should have_content 'Apple pie'
|
||||
ember_route_should_be '/active-list'
|
||||
product_order = @list.orders.first.product_orders.first
|
||||
page.should have_content "#{product_order.quantity} x #{product_order.product_name}"
|
||||
all('.table-number').map(&:text).uniq.should == ["# #{@other_table.number.to_s}"]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user