Make ember route expectations smarter

This commit is contained in:
2014-10-17 18:23:48 +02:00
parent 84b1060c6f
commit 8837037b05
6 changed files with 19 additions and 7 deletions
@@ -24,7 +24,6 @@ end
step "the user should be redirected to the archived list path" do
#route_should_be 'user#history_list'
sleep 1
ember_route_should_be "/lists/#{@order.list_id}"
page.should have_selector ".order-row-#{@order.id}"
end
@@ -27,5 +27,5 @@ end
## ASSERTIONS
step "the supplier should be redirected to the root path" do
ember_route.should == '/'
ember_route_should_be '/'
end
@@ -37,7 +37,7 @@ end
step "the supplier should be redirected to the supplier settings path" do
# route_should_be 'supplier#edit'
ember_route.should == '/settings'
ember_route_should_be '/settings'
end
step "the supplier email is the new email and the unconfirmed email is empty" do
@@ -13,7 +13,6 @@ end
step "the user clicks on the user order button" do
find('.order-selected-products-button').click
sleep 1
end
step "the user has an active order" do