summaryrefslogtreecommitdiff
path: root/spec/serializers/container_repository_entity_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/serializers/container_repository_entity_spec.rb')
-rw-r--r--spec/serializers/container_repository_entity_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/serializers/container_repository_entity_spec.rb b/spec/serializers/container_repository_entity_spec.rb
index 96c80331f41..1f85c6e6a46 100644
--- a/spec/serializers/container_repository_entity_spec.rb
+++ b/spec/serializers/container_repository_entity_spec.rb
@@ -13,12 +13,14 @@ describe ContainerRepositoryEntity do
before do
stub_container_registry_config(enabled: true)
+ stub_container_registry_tags(repository: :any,
+ tags: %w[stable latest])
allow(request).to receive(:project).and_return(project)
allow(request).to receive(:current_user).and_return(user)
end
it 'exposes required informations' do
- expect(subject).to include(:id, :path, :location, :tags_path)
+ expect(subject).to include(:id, :path, :location, :tags_path, :tags_count)
end
context 'when project is not preset in the request' do