Skip to content

Improve snippet presenter spec with repo data

What does this MR do?

When snippets don't have a repository, it can still return a blob (like) object from the database data. We have to start changing that because those columns from the database are going to be removed at some point, and assume that all snippets has repository data and we need to use the information from there.

In the sake of that spirit, we update the spec/presenters/snippet_blob_presenter_spec.rb spec in this MR to stop using the data from the database and start using the data from the repository.

Does this MR meet the acceptance criteria?

Conformity

Merge request reports