From 7729ca1a8d31ea3ce09df4e33596046fa081d41c Mon Sep 17 00:00:00 2001 From: Paul Hodgson Date: Tue, 29 Sep 2020 09:17:51 +0100 Subject: [PATCH] [PH][MIBM-87] improve specs --- .../controllers/CheckYourAnswersControllerSpec.scala | 2 +- .../controllers/ExciseAndRestrictedGoodsControllerSpec.scala | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/uk/gov/hmrc/merchandiseinbaggagefrontend/controllers/CheckYourAnswersControllerSpec.scala b/test/uk/gov/hmrc/merchandiseinbaggagefrontend/controllers/CheckYourAnswersControllerSpec.scala index 34e7b7412..2a449bcee 100644 --- a/test/uk/gov/hmrc/merchandiseinbaggagefrontend/controllers/CheckYourAnswersControllerSpec.scala +++ b/test/uk/gov/hmrc/merchandiseinbaggagefrontend/controllers/CheckYourAnswersControllerSpec.scala @@ -65,7 +65,7 @@ class CheckYourAnswersControllerSpec extends DeclarationJourneyControllerSpec { content must include("Place of arrival") content must include("Dover") content must include("Date of arrival") - content must include("28 Sep 2020") + content must include(completedDeclarationJourney.maybeJourneyDetails.get.formattedDateOfArrival) content must include("Now send your declaration") content must include("I understand that:") diff --git a/test/uk/gov/hmrc/merchandiseinbaggagefrontend/controllers/ExciseAndRestrictedGoodsControllerSpec.scala b/test/uk/gov/hmrc/merchandiseinbaggagefrontend/controllers/ExciseAndRestrictedGoodsControllerSpec.scala index 2ba726c8b..cccc5abfa 100644 --- a/test/uk/gov/hmrc/merchandiseinbaggagefrontend/controllers/ExciseAndRestrictedGoodsControllerSpec.scala +++ b/test/uk/gov/hmrc/merchandiseinbaggagefrontend/controllers/ExciseAndRestrictedGoodsControllerSpec.scala @@ -78,6 +78,9 @@ class ExciseAndRestrictedGoodsControllerSpec extends DeclarationJourneyControlle status(result) mustEqual SEE_OTHER redirectLocation(result).get mustEqual routes.GoodsDestinationController.onPageLoad().toString + + startedDeclarationJourney.maybeExciseOrRestrictedGoods mustBe None + declarationJourneyRepository.findBySessionId(sessionId).futureValue.get.maybeExciseOrRestrictedGoods mustBe Some(false) } }