Class: Pact::UnexpectedKey

Inherits:
Object
  • Object
show all
Defined in:
lib/pact/matchers/unexpected_key.rb

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



4
5
6
# File 'lib/pact/matchers/unexpected_key.rb', line 4

def == other
  other.is_a? UnexpectedKey
end

#to_json(opts = {}) ⇒ Object



13
14
15
# File 'lib/pact/matchers/unexpected_key.rb', line 13

def to_json opts = {}
  to_s
end

#to_sObject



9
10
11
# File 'lib/pact/matchers/unexpected_key.rb', line 9

def to_s
  '<key not to exist>'
end