class RSpec::Matchers::BuiltIn::ContainExactly

def failure_message

Returns:
  • (String) -

Other tags:
    Api: - private
def failure_message
  if Array === actual
    generate_failure_message
  else
    "expected a collection that can be converted to an array with " \
    "`#to_ary` or `#to_a`, but got #{actual_formatted}"
  end
end