Working user order flow spec
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user