end.toraise_error(described_class::InvalidIssuableTypeError,"Invalid `:issuable_type` option: `foo`. Allowed values are #{described_class::FINDERS.keys}!")
end
it'raises an error for an invalid entity object'do
expect{find(build(:user),issuable_type: 'issue')}.toraise_error(described_class::InvalidEntityError,'Entity class `User` is not supported. Supported classes are Project and Namespace!')