From bfd088265622ca46bb1f722b8c16e8e650b47f0e Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 27 Oct 2017 21:45:57 +1100 Subject: [PATCH] fix(can-i-deploy): correct provider name in text output --- lib/pact_broker/client/matrix/text_formatter.rb | 2 +- spec/support/matrix.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pact_broker/client/matrix/text_formatter.rb b/lib/pact_broker/client/matrix/text_formatter.rb index 01fa0db0..63f8f73d 100644 --- a/lib/pact_broker/client/matrix/text_formatter.rb +++ b/lib/pact_broker/client/matrix/text_formatter.rb @@ -12,7 +12,7 @@ def self.call(matrix_lines) Line.new( lookup(line, :consumer, :name), lookup(line, :consumer, :version, :number), - lookup(line, :consumer, :name), + lookup(line, :provider, :name), lookup(line, :provider, :version, :number), lookup(line, :verificationResult, :success).to_s ) diff --git a/spec/support/matrix.txt b/spec/support/matrix.txt index 4e87abd7..9c9b92c5 100644 --- a/spec/support/matrix.txt +++ b/spec/support/matrix.txt @@ -1,3 +1,3 @@ CONSUMER | CONSUMER_VERSION | PROVIDER | PROVIDER_VERSION | SUCCESS ---------|------------------|----------|------------------|-------- -Foo | 4 | Foo | 5 | true \ No newline at end of file +Foo | 4 | Bar | 5 | true \ No newline at end of file