From 748d3b87bfe10353a189ed25085ce64ad5188ff3 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 3 Sep 2021 18:47:18 +1000 Subject: [PATCH] feat(pacts for verification): include pending status for responses by default when includePendingStatus is not specified --- .../api/decorators/pacts_for_verification_query_decorator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pact_broker/api/decorators/pacts_for_verification_query_decorator.rb b/lib/pact_broker/api/decorators/pacts_for_verification_query_decorator.rb index 6e9dc37c2..0c9bb9b4c 100644 --- a/lib/pact_broker/api/decorators/pacts_for_verification_query_decorator.rb +++ b/lib/pact_broker/api/decorators/pacts_for_verification_query_decorator.rb @@ -38,7 +38,7 @@ class PactsForVerificationQueryDecorator < BaseDecorator } end - property :include_pending_status, default: false, + property :include_pending_status, default: true, setter: ->(fragment:, represented:, **) { represented.include_pending_status = (fragment == "true" || fragment == true) }