class Mocha::ParameterMatchers::YamlEquivalent
Parameter matcher which matches if actual parameter is YAML equivalent of specified object.
def initialize(object)
- Private: -
def initialize(object) @object = object end
def matches?(available_parameters)
- 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
- Private: -
def mocha_inspect "yaml_equivalent(#{@object.mocha_inspect})" end