Sha256: 3214f1c40a47f98369058303585a69ad394ce262f3244c5bc79527ecfeff625b
Contents?: true
Size: 569 Bytes
Versions: 39
Compression:
Stored size: 569 Bytes
Contents
require 'uri' require 'pact/shared/text_differ' module Pact class MultipartFormDiffer def self.call expected, actual, options = {} require 'pact/matchers' # avoid recursive loop between this file and pact/matchers expected_boundary = expected.split.first actual_boundary = actual.split.first actual_with_hardcoded_boundary = actual.gsub(actual_boundary, expected_boundary) TextDiffer.call(expected, actual_with_hardcoded_boundary, options) rescue StandardError TextDiffer.call(expected, actual, options) end end end
Version data entries
39 entries across 39 versions & 2 rubygems