class Pact::Matchers::TypeDifference

Public Instance Methods

as_json(options = {}) click to toggle source
# File lib/pact/matchers/type_difference.rb, line 7
def as_json options = {}
  if KeyNotFound === actual
    {:EXPECTED_TYPE => expected.as_json, :ACTUAL => actual.as_json }
  else
    {:EXPECTED_TYPE => expected.as_json, :ACTUAL_TYPE => actual.as_json }
  end
end