class Mocha::ParameterMatchers::YamlEquivalent

Parameter matcher which matches if actual parameter is YAML equivalent of specified object.

def initialize(object)

Other tags:
    Private: -
def initialize(object)
  @object = object
end

def matches?(available_parameters)

Other tags:
    Private: -
def matches?(available_parameters)
  parameter = available_parameters.shift
  # rubocop:disable Security/YAMLLoad
  @object == YAML.load(parameter)
  # rubocop:enable Security/YAMLLoad
end

def mocha_inspect

Other tags:
    Private: -
def mocha_inspect
  "yaml_equivalent(#{@object.mocha_inspect})"
end