Skip to content

Commit

Permalink
Merge pull request #13 from hmrc/MIBM-87-tests
Browse files Browse the repository at this point in the history
[PH][MIBM-87] improve spec
  • Loading branch information
PaulHodgson authored Sep 29, 2020
2 parents 688fdfe + 7729ca1 commit c26b8e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down

0 comments on commit c26b8e6

Please sign in to comment.