Refactor User specs to replace deprecated find_by_attribute with find_by(attribute: attribute)