From 44a0c63aec5e476eb0c300d9a2b5de568533a060 Mon Sep 17 00:00:00 2001 From: Alan Thomas Date: Thu, 20 Aug 2015 12:11:43 +0100 Subject: [PATCH 1/2] Fix test so that it is in the future and not the past --- features/suzie_views_a_petition.feature | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/suzie_views_a_petition.feature b/features/suzie_views_a_petition.feature index 3aed14f95..a92b38676 100644 --- a/features/suzie_views_a_petition.feature +++ b/features/suzie_views_a_petition.feature @@ -69,6 +69,6 @@ Feature: Suzie views a petition And I should see a summary of the debate outcome Scenario: Suzie views a petition which has a scheduled debate date - Given an open petition "Spend more money on Defence" with scheduled debate date of "18/08/2015" + Given an open petition "Spend more money on Defence" with scheduled debate date of "18/08/2019" When I view the petition - Then I should see "Parliament will debate this petition on 18 August 2015. You'll be able to watch online at parliamentlive.tv" + Then I should see "Parliament will debate this petition on 18 August 2019. You'll be able to watch online at parliamentlive.tv" From 99b202bc8d58942b9ad4df11b3f4c4fa92bd400c Mon Sep 17 00:00:00 2001 From: Alan Thomas Date: Thu, 20 Aug 2015 12:42:42 +0100 Subject: [PATCH 2/2] Use time travel step rather than relying on the date being in the future --- features/suzie_views_a_petition.feature | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/features/suzie_views_a_petition.feature b/features/suzie_views_a_petition.feature index a92b38676..ce8f51876 100644 --- a/features/suzie_views_a_petition.feature +++ b/features/suzie_views_a_petition.feature @@ -69,6 +69,7 @@ Feature: Suzie views a petition And I should see a summary of the debate outcome Scenario: Suzie views a petition which has a scheduled debate date - Given an open petition "Spend more money on Defence" with scheduled debate date of "18/08/2019" + Given the date is the "01/08/2015" + And an open petition "Spend more money on Defence" with scheduled debate date of "18/08/2015" When I view the petition - Then I should see "Parliament will debate this petition on 18 August 2019. You'll be able to watch online at parliamentlive.tv" + Then I should see "Parliament will debate this petition on 18 August 2015. You'll be able to watch online at parliamentlive.tv"