Working user order flow spec

This commit is contained in:
2013-12-02 07:38:02 +01:00
parent 7b9b784ef9
commit afb30556bd
15 changed files with 161 additions and 7 deletions
@@ -0,0 +1,12 @@
step "I am on the user homepage" do
visit user_root_path
end
step "the user should be redirected to the user order overview page" do
route_should_be 'user#active_list'
end
step "the user should be redirected to the archived list path" do
route_should_be 'user#history_list'
page.should have_selector ".order-row-#{@order.id}"
end