diff --git a/lib/pact_broker/api/decorators/matrix_decorator.rb b/lib/pact_broker/api/decorators/matrix_decorator.rb index 199f0665f..0440fc0d6 100644 --- a/lib/pact_broker/api/decorators/matrix_decorator.rb +++ b/lib/pact_broker/api/decorators/matrix_decorator.rb @@ -18,7 +18,7 @@ def to_json(options) def to_hash(options) { summary: { - compatible: compatible? + deployable: deployable? }, matrix: matrix(lines, options[:user_options][:base_url]) } @@ -28,7 +28,7 @@ def to_hash(options) attr_reader :lines - def compatible? + def deployable? lines.any? && lines.all?{ |line| line[:success] } end diff --git a/spec/lib/pact_broker/api/decorators/matrix_decorator_spec.rb b/spec/lib/pact_broker/api/decorators/matrix_decorator_spec.rb index 142f13eb4..2317b860d 100644 --- a/spec/lib/pact_broker/api/decorators/matrix_decorator_spec.rb +++ b/spec/lib/pact_broker/api/decorators/matrix_decorator_spec.rb @@ -114,7 +114,7 @@ module Decorators end it "includes a summary" do - expect(parsed_json[:summary][:compatible]).to eq false + expect(parsed_json[:summary][:deployable]).to eq false end context "when the pact has not been verified" do