lib/pact/shared/key_not_found.rb in pact-1.1.0.rc2 vs lib/pact/shared/key_not_found.rb in pact-1.1.0.rc3

- old
+ new

@@ -1,24 +1,11 @@ +require 'pact/matchers/difference_indicator' + module Pact - class KeyNotFound - def == other - other.is_a? KeyNotFound - end + class KeyNotFound < Pact::DifferenceIndicator - def eql? other - self == other - end - def to_s "<key not found>" - end - - def as_json options={} - to_s - end - - def to_json options = {} - as_json.to_json options end def empty? true end \ No newline at end of file