diff --git a/lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb b/lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb index 02bab4908..a93e178f0 100644 --- a/lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb +++ b/lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb @@ -4,6 +4,10 @@ module PactBroker module Api module Resources class LatestVerificationForLatestPact < Verification + def resource_exists? + !!verification + end + private def pact diff --git a/lib/pact_broker/api/resources/latest_verification_for_pact.rb b/lib/pact_broker/api/resources/latest_verification_for_pact.rb index 678b05099..c80414a9e 100644 --- a/lib/pact_broker/api/resources/latest_verification_for_pact.rb +++ b/lib/pact_broker/api/resources/latest_verification_for_pact.rb @@ -4,6 +4,10 @@ module PactBroker module Api module Resources class LatestVerificationForPact < Verification + def resource_exists? + !!verification + end + private def pact