Sha256: 149540bcbd61670f90c069d53823e92d6058f596738ff87b81e178c37e0ab5cc
Contents?: true
Size: 637 Bytes
Versions: 70
Compression:
Stored size: 637 Bytes
Contents
require 'pact/matchers' require 'pact_broker/json' require 'pact/matchers/unix_diff_formatter' module PactBroker module Pacts class CreateFormattedDiff extend Pact::Matchers def self.call pact_json_content, previous_pact_json_content pact_hash = JSON.load(pact_json_content, nil, PactBroker::PACT_PARSING_OPTIONS) previous_pact_hash = JSON.load(previous_pact_json_content, nil, PactBroker::PACT_PARSING_OPTIONS) difference = diff(previous_pact_hash, pact_hash) Pact::Matchers::UnixDiffFormatter.call(difference, colour: false, include_explanation: false) end end end end
Version data entries
70 entries across 70 versions & 1 rubygems