Sha256: 53a2a227f94ea4c392886a9870f1a22dfaf9c01e399156ac1cea5e804404d11c
Contents?: true
Size: 495 Bytes
Versions: 9
Compression:
Stored size: 495 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) end end end
Version data entries
9 entries across 9 versions & 1 rubygems