Class: Pact::Matchers::Difference

Inherits:
BaseDifference show all
Defined in:
lib/pact/matchers/difference.rb

Instance Attribute Summary

Attributes inherited from BaseDifference

#actual, #expected, #message

Instance Method Summary collapse

Methods inherited from BaseDifference

#==, #any?, #empty?, #initialize, #to_json, #to_s

Constructor Details

This class inherits a constructor from Pact::Matchers::BaseDifference

Instance Method Details

#as_json(options = {}) ⇒ Object



7
8
9
# File 'lib/pact/matchers/difference.rb', line 7

def as_json options = {}
  {:EXPECTED => expected, :ACTUAL => actual}
end