Sha256: e425c35ad6fdd0214ed691715999b123eb7df6824112ea1e82eb75d68d2b5ef9
Contents?: true
Size: 636 Bytes
Versions: 88
Compression:
Stored size: 636 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
88 entries across 88 versions & 1 rubygems