Specs are green

This commit is contained in:
2014-12-11 16:08:30 +01:00
parent 15e6bdf054
commit f9c94bab47
6 changed files with 9 additions and 5 deletions
@@ -3,7 +3,7 @@ step "the user is on the active list page" do
end
step "the user should see the order in the active list view" do
page.evaluate_script(%|$('.order-row-#{@order.id}').text()|).first(14).should == '2 x Beer€ 4.68'
page.evaluate_script(%|$('.order-row-#{@order.id}').text()|).should start_with "2 x Heineken beer€ 4.68"
end
step "the user should not see the order in the active list view" do
@@ -17,7 +17,6 @@ step "the user clicks on the about link in the side menu" do
end
step "the user clicks on the active list link in the side menu" do
binding.pry
page.execute_script %|$('.side-menu-active-list').click()|
end