Skip to content

Commit

Permalink
feat(matrix): rename 'compatible' to 'deployable' in matrix response
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Oct 30, 2017
1 parent 778ffad commit d97b8ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/pact_broker/api/decorators/matrix_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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])
}
Expand All @@ -28,7 +28,7 @@ def to_hash(options)

attr_reader :lines

def compatible?
def deployable?
lines.any? && lines.all?{ |line| line[:success] }
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d97b8ab

Please sign in to comment.