Class: Pact::Matchers::RegexpDifference

Inherits:
BaseDifference show all
Defined in:
lib/pact/matchers/regexp_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/regexp_difference.rb', line 7

def as_json options = {}
  {:EXPECTED_TO_MATCH => expected.inspect, :ACTUAL => actual}
end