From 74d3644db71f4f32f180dcdbc59a4175f4c2a405 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Thu, 19 Nov 2020 10:09:02 +1100 Subject: [PATCH] fix: return a 404 when the base pact for a pact diff doesn't exist --- lib/pact_broker/api/resources/pact_content_diff.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pact_broker/api/resources/pact_content_diff.rb b/lib/pact_broker/api/resources/pact_content_diff.rb index a3e2b4d5b..1f227257a 100644 --- a/lib/pact_broker/api/resources/pact_content_diff.rb +++ b/lib/pact_broker/api/resources/pact_content_diff.rb @@ -15,7 +15,7 @@ def allowed_methods end def resource_exists? - consumer && provider + pact end def to_text