I am writing some test in playspec and I want like to write a matcher like this
planPromise.trialPeriodDays mustBe (equal (planRequest.trialPeriodDays) or be (None))
What the matcher is trying to do is to identify if the value is an int (previously defined) or none.
Obviosly is not working.
Is there a way to write this?
Thank you
Aucun commentaire:
Enregistrer un commentaire