Method: Pact::QueryHash#difference

Defined in:
lib/pact/consumer_contract/query_hash.rb

#difference(other) ⇒ Object

other will always be a QueryString, not a QueryHash, as it will have ben created from the actual query string.



33
34
35
36
# File 'lib/pact/consumer_contract/query_hash.rb', line 33

def difference(other)
  require 'pact/matchers' # avoid recursive loop between this file, pact/reification and pact/matchers
  Pact::Matchers.diff(query, symbolize_keys(CGI::parse(other.query)), allow_unexpected_keys: false)
end