Finish join request spec

This commit is contained in:
2013-12-10 06:56:20 +01:00
parent 087cfa639d
commit 0ac9a70797
4 changed files with 24 additions and 8 deletions
@@ -20,3 +20,13 @@ step "the other user should see a join table waiting message" do
waiting_text = page.evaluate_script(%|t('join_request.requestor.waiting_for_confirmation')|)
page.should have_content waiting_text
end
step "the other user sees the table menu" do
Capybara.session_name = :other_user
route_should_be 'user#list_products_for_table'
find('.table-number').text.should == @table.number.to_s
end
step "the other user does not see order buttons" do
page.should_not have_selector '.order-product-button'
end