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