lib/pact/shared/key_not_found.rb in pact-1.0.39 vs lib/pact/shared/key_not_found.rb in pact-1.1.0.rc1

- old
+ new

@@ -1,11 +1,24 @@ -require 'pact/matchers/difference_indicator' - module Pact - class KeyNotFound < Pact::DifferenceIndicator + class KeyNotFound + def == other + other.is_a? KeyNotFound + end + 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