From 179844b5cf3f65e2a7b341d9f73f161bc1915552 Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Thu, 13 Mar 2014 14:32:14 +1100 Subject: [PATCH] Fixing another spec --- spec/features/consumer/order_cycles_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/features/consumer/order_cycles_spec.rb b/spec/features/consumer/order_cycles_spec.rb index ea4dde4147..e73d2938ea 100644 --- a/spec/features/consumer/order_cycles_spec.rb +++ b/spec/features/consumer/order_cycles_spec.rb @@ -106,8 +106,8 @@ feature %q{ click_link p.name click_button 'Add To Cart' + visit enterprise_path d - click_link 'Continue shopping' click_link 'Change Collection Date' @@ -160,7 +160,8 @@ feature %q{ # And the order cycle expires and I load a page Timecop.travel(oc.orders_close_at + 1.day) do - click_link 'Continue shopping' + + visit enterprise_path d # Then I should see an expiry message page.should have_content "Sorry, orders for this order cycle closed 1 day ago! Please contact your hub directly to see if they can accept late orders."