From 901c9abe381a7331f1d5791cb0a7db8338455373 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Fri, 2 May 2014 15:39:17 +1000 Subject: [PATCH] Increase wait time for failing spec --- spec/features/consumer/shopping/checkout_spec.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/spec/features/consumer/shopping/checkout_spec.rb b/spec/features/consumer/shopping/checkout_spec.rb index fc64fbed29..ae0b9760da 100644 --- a/spec/features/consumer/shopping/checkout_spec.rb +++ b/spec/features/consumer/shopping/checkout_spec.rb @@ -106,12 +106,14 @@ feature "As a consumer I want to check out my cart", js: true do pickup_time.should_not be_blank pickup_instructions.should_not be_blank - wait_until { ActionMailer::Base.deliveries.length == 1 } - email = ActionMailer::Base.deliveries.last + Capybara.using_wait_time(60) do + wait_until { ActionMailer::Base.deliveries.length == 1 } + email = ActionMailer::Base.deliveries.last - email.body.should include distributor_info - email.body.should include pickup_time - email.body.should include pickup_instructions + email.body.should include distributor_info + email.body.should include pickup_time + email.body.should include pickup_instructions + end end it "takes us to the order confirmation page when submitted with 'same as billing address' checked" do