diff --git a/src/test/groovy/com/df/fhrs/service/FhrsServiceSpec.groovy b/src/test/groovy/com/df/fhrs/service/FhrsServiceSpec.groovy index 2976d6a..5b52472 100644 --- a/src/test/groovy/com/df/fhrs/service/FhrsServiceSpec.groovy +++ b/src/test/groovy/com/df/fhrs/service/FhrsServiceSpec.groovy @@ -163,6 +163,7 @@ class FhrsServiceSpec extends Specification { ] as Establishments, OK ) - thrown NoEstablishmentFoundException + NoEstablishmentFoundException noEstablishmentFoundException = thrown() + noEstablishmentFoundException.message.contains(unknownAuthorityId.toString()) } }