class ChefSpec::Matchers::StateAttrsMatcher

def failure_message

def failure_message
  if @resource
    "expected #{state_attrs.inspect} to equal #{@expected_attrs.inspect}"
  else
    "expected _something_ to have state attributes, but the " \
    "_something_ you gave me was nil!" \
    "\n" \
    "Ensure the resource exists before making assertions:" \
    "\n\n" \
    "  expect(resource).to be" \
    "\n "
  end
end